View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001640 | JEDI VCL | 00 JVCL Components | public | 2004-04-15 02:38 | 2004-04-15 10:05 |
Reporter | anonymous | Assigned To | user72 | ||
Priority | normal | Severity | crash | Reproducibility | sometimes |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001640: TJvDBGrid 1.44 crash in CanEditShow (access violation) | ||||
Description | crash on the line: F := Fields[SelectedIndex]; to be protected I modify the function to the following version: function TJvDBGrid.CanEditShow: Boolean; var F: TField; begin Result := inherited CanEditShow; { F := nil; if Result and (DataLink <> nil) and DataLink.Active and (FieldCount > 0) and (SelectedIndex < FieldCount) and (SelectedIndex >= 0) and (FieldCount <= DataSource.DataSet.FieldCount) then begin F := Fields[SelectedIndex]; if F <> nil then Result := GetImageIndex(F) < 0; end; } if Result and Assigned(FOnShowEditor) and (DataLink <> nil) and DataLink.Active and (FieldCount > 0) and (SelectedIndex < FieldCount) and (SelectedIndex >= 0) and (FieldCount <= DataSource.DataSet.FieldCount) then begin F := Fields[SelectedIndex]; FOnShowEditor(Self, F, Result); end; end; | ||||
Additional Information | Crash appends when the dataset used by the dbGrid is modified or replaced. | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2004-04-15 02:38 | anonymous | New Issue | |
2004-04-15 10:05 |
|
Status | new => resolved |
2004-04-15 10:05 |
|
Resolution | open => fixed |
2004-04-15 10:05 |
|
Assigned To | => user72 |
2004-04-15 10:05 |
|
Note Added: 0003878 |