Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004867 [JEDI VCL] 00 JVCL Components major always 2009-07-21 10:03 2009-08-05 11:02
Reporter cacofony View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version 3.37
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.
Attached Files zip file icon 0004867.zip [^] (349,906 bytes) 2009-07-21 14:51

- Relationships

-  Notes
(0015867)
obones (administrator)
2009-07-21 11:14

Please provide the zipped sources of a sample application showing this issue
(0015871)
cacofony (reporter)
2009-07-21 14:52

I have attached example application.
(0015920)
obones (administrator)
2009-08-05 11:02

Thanks, this is now fixed in SVN

- Issue History
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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker