[Lazarus] How to destroy object / component by itself?

Marc Weustink marc at dommelstein.nl
Thu Dec 3 23:15:27 CET 2015



On December 3, 2015 9:26:39 PM GMT+01:00, Krzysztof <dibo20 at wp.pl> wrote:
>Hi,
>
>How to destroy object or component in its own method (do this in next
>message queue)? Currently I'm using Application.QueueAsyncCall but IIRC
>there is special routine in FPC/LCL but can't find. For example Qt has
>myobject.qDeleteLater()

For forms and decendants, TForm.release

Other objects, you just call free

Marc









More information about the Lazarus mailing list