View Issue Details

IDProjectCategoryView StatusLast Update
0037163LazarusRTLpublic2020-06-04 23:34
ReporterRenato Ricci Assigned To 
Status newResolutionopen 
Product Version2.0.8 
Summary0037163: Event Handler error
DescriptionHello, I would like to report that Lazarus is not leting me clear/unlink an event when it is a TCollection..

Even when i habe 'Auto remove empty methods', the event is not unlinked when we emprty the method.

Please see the attachment for details..

Looks like a bug..

TagsNo tags attached.
Fixed in Revision
Attached Files


Renato Ricci

2020-06-01 19:14


Screenshot_3.png (63,683 bytes)   
Screenshot_3.png (63,683 bytes)   

Juha Manninen

2020-06-02 08:39

developer   ~0123179

Can you please provide a simple example project to reproduce the error.

Renato Ricci

2020-06-04 16:02

reporter   ~0123221

Hi.. Please see attachment..

Steps to reproduce:

Active the 'Auto remove empty methods' on yout IDE and:

1) First, install the Package NewPackage.lpk
2) Open de Project Sample.
3) The sample project already has a Event on the component. Try to go to the code and clean the event.

You will see that IDE will remove the Method(since there is no code anymore), but the Event on the component is still there(not suppose to..)

Renato (131,911 bytes)
Screenshot_4.png (99,346 bytes)   
Screenshot_4.png (99,346 bytes)   

Juha Manninen

2020-06-04 23:08

developer   ~0123233

Yes I can reproduce now. Thanks for the good minimal example.
I only had to remove the "windows" unit here and it compiled.

What is the GroupDescendentsWith() call in procedure Register for?
I checked its implementation. It is empty.

Renato Ricci

2020-06-04 23:14

reporter   ~0123234

I think you can remove the GroupDescendentsWith() ate register procedure..

Renato Ricci

2020-06-04 23:28

reporter   ~0123235

Last edited: 2020-06-04 23:34

View 2 revisions

And there is another behavior that sometimes happens but I can not reproduce it always is that I dont know why, sometimes I can not set the event to '(none)'.. May be it is related to the above related behavior(Sample Project).
Screenshot_5.png (12,549 bytes)   
Screenshot_5.png (12,549 bytes)   

Issue History

Date Modified Username Field Change
2020-06-01 19:14 Renato Ricci New Issue
2020-06-01 19:14 Renato Ricci File Added: Screenshot_3.png
2020-06-02 08:39 Juha Manninen Note Added: 0123179
2020-06-04 16:02 Renato Ricci Note Added: 0123221
2020-06-04 16:02 Renato Ricci File Added:
2020-06-04 16:02 Renato Ricci File Added: Screenshot_4.png
2020-06-04 23:08 Juha Manninen Note Added: 0123233
2020-06-04 23:14 Renato Ricci Note Added: 0123234
2020-06-04 23:28 Renato Ricci Note Added: 0123235
2020-06-04 23:28 Renato Ricci File Added: Screenshot_5.png
2020-06-04 23:34 Renato Ricci Note Edited: 0123235 View Revisions