[Lazarus] Application.QueueAsyncCall and checking if object still exists

Michael Schnell mschnell at lumino.de
Thu Sep 22 15:01:27 CEST 2011


On 09/22/2011 02:56 PM, Michael Schnell wrote:
>
>
> IMHO the better way is to check if the object exists in the main 
> thread when called.
Obviously you need to use a procedure of some other object (e.g. the 
thread itself) and (if necessary) provide the object i9n question (that 
might be destroyed and NILled) as a parameter.

(BTW if the user programmer does not care for it there is no way to 
detect if an object is destroyed. It would need to be NILled by same.So 
a library function can't check this.)

-Michael




More information about the Lazarus mailing list