Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-11

Actionlist not removed from FActionlists when frame is destroyed.

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Torsten Bonde Christiansen

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.

Kind regards,
Torsten Bonde Christiansen.

Reply by email

Mattias Gärtner
to Torsten Bonde Christiansen

Zitat von Torsten Bonde Christiansen :

Show quoted text 18 lines
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

Reply by email