View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003601 | JEDI VCL | 00 JVCL Components | public | 2006-03-21 06:43 | 2006-09-29 06:41 |
Reporter | marcgeldon | Assigned To | obones | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.10 | ||||
Target Version | Fixed in Version | 3.30 | |||
Summary | 0003601: TJvCustomDBTreeView Bug (with bugfix, please add to CVS!) | ||||
Description | There is a bug in the following function: "TJvCustomDBTreeView.ValidDataSet". If you open the TJvDBLookupTreeViewCombo and let it open while closing the parent / the window, you'll receive an EAccessViolation. Here is a bug fix: +++ OLD VERSION (CURRENT VERSION) +++ function TJvCustomDBTreeView.ValidDataSet: Boolean; begin Result := FDataLink.Active and Assigned(FDataLink.DataSet) and FDataLink.DataSet.Active; end; +++ NEW VERSION (WITHOUT BUG) +++ function TJvCustomDBTreeView.ValidDataSet: Boolean; begin Result := Assigned(FDataLink) and FDataLink.Active and Assigned(FDataLink.DataSet) and FDataLink.DataSet.Active; end; We have to check if the FDataLink still exists, before access it! | ||||
Tags | No tags attached. | ||||
|
Please, can someone change this in CVS? Bugfix can be found here in the bug description! |
|
But FDataLink is only destroyed in the destructor. Does this mean ValidDataSet is called after a call to Destroy? If so, I'd be very surprised, and would like to know the call stack leading to this. |
|
Any remarks? |
|
Marc, please provide a sample application, I really need to see this happening. |
|
I think there is no demo application needed. This is just more a "Assigned"-check. Is that okay? |
|
Well, sure, having the "Assigned" test will avoid this. What I don't understand, and why I want to see it happening, is how it gets set to nil. Looking at the source, I can't see this happening, hence the question. |
Date Modified | Username | Field | Change |
---|---|---|---|
2006-03-21 06:43 | marcgeldon | New Issue | |
2006-04-05 06:58 | marcgeldon | Note Added: 0008991 | |
2006-04-05 08:22 | obones | Note Added: 0009000 | |
2006-04-05 08:22 | obones | Status | new => feedback |
2006-06-08 07:27 | obones | Note Added: 0009474 | |
2006-06-27 08:33 | obones | Note Added: 0009697 | |
2006-08-23 08:40 | marcgeldon | Note Added: 0010006 | |
2006-08-24 00:48 | obones | Note Added: 0010010 | |
2006-09-29 06:41 | obones | Status | feedback => resolved |
2006-09-29 06:41 | obones | Fixed in Version | => Daily / SVN |
2006-09-29 06:41 | obones | Resolution | open => fixed |
2006-09-29 06:41 | obones | Assigned To | => obones |