View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004867 | JEDI VCL | 00 JVCL Components | public | 2009-07-21 10:03 | 2009-08-05 11:02 |
Reporter | cacofony | Assigned To | obones | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.37 | ||||
Target Version | Fixed in Version | 3.38 | |||
Summary | 0004867: TJvXPBar causes access violation when Actions are removed at runtime | ||||
Description | If action are removed from a TJvXPBar at run time on the mouse entry into the component it will raise an access violation. The issue appears to be due to FHoverIndex no longer being valid. Solution to my problem was resetting FHoverIndex := -1; after a ResizeToMaxHeight. This may not be the best location; but it am updating the items during a BeginUpdate, EndUpdate block and ResizeToMaxHeight is called. | ||||
Additional Information | procedure TJvXPCustomWinXPBar.ResizeToMaxHeight; var NewHeight: Integer; begin { TODO: Check this!!! } if IsLocked then Exit; NewHeight := FC_HEADER_MARGIN + HeaderHeight + FVisibleItems.Count * FRollOffset + FC_ITEM_MARGIN + 1; { full collapsing } if ((FRolling and not FCollapsed) or (not FRolling and FCollapsed) or (FVisibleItems.Count = 0)) then Dec(NewHeight, FC_ITEM_MARGIN); // if Height <> NewHeight then Height := NewHeight - 5 + FTopSpace; // Tristan Marlow FHoverIndex := -1; end; | ||||
Tags | No tags attached. | ||||
|
Please provide the zipped sources of a sample application showing this issue |
2009-07-21 14:51
|
0004867.zip (349,906 bytes) |
|
I have attached example application. |
|
Thanks, this is now fixed in SVN |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-07-21 10:03 | cacofony | New Issue | |
2009-07-21 11:14 | obones | Note Added: 0015867 | |
2009-07-21 11:14 | obones | Status | new => feedback |
2009-07-21 14:51 | cacofony | File Added: 0004867.zip | |
2009-07-21 14:52 | cacofony | Note Added: 0015871 | |
2009-08-05 11:02 | obones | Note Added: 0015920 | |
2009-08-05 11:02 | obones | Status | feedback => resolved |
2009-08-05 11:02 | obones | Fixed in Version | => Daily / SVN |
2009-08-05 11:02 | obones | Resolution | open => fixed |
2009-08-05 11:02 | obones | Assigned To | => obones |