[Lazarus] Actionlist not removed from FActionlists when frame is destroyed.

Mattias Gärtner nc-gaertnma at netcologne.de
Mon Nov 30 17:04:38 CET 2009


Zitat von Torsten Bonde Christiansen <tc at epidata.dk>:

> Hi Lazarus developers.
>
> For some odd reason an actionlist (placed on a frame, placed in a  
> tabsheet) that is automatically added to a TCustomForm.FActionLists  
> is not removed from the very same list when the frame is destroyed.
>
> This leaves dangling pointers (to the destroyed actionlist on the  
> frame), which TCustomForm.IsShortCut tries to execute.
>
> I dont know if this is because i'm not destroying my tabsheet  
> correctly - i'm doing a regular tabsheet.free, which I believe in  
> turn should destroy the frame and hence also the actionlist.
>
> A small example demonstrating the problem can be found here:  
> http://pastebin.org/58697
> (without the actual frame code though).
>
> Any help would be appreciated.

Please create a bug report with a complete example.

Mattias






More information about the Lazarus mailing list