TApplication.QueueAsyncCallInserts an asynchronous call into the queue.DeclarationSource position: forms.pp line 1462public procedure TApplication.QueueAsyncCall( const AMethod: TDataEvent; Data: PtrInt).....type TDataEvent = procedure( Data: PtrInt) of object;
btw. I don't use LCL, it's TApplication.QueueAsyncCall(); available?
thanks,does ezthread class automatically free itself onterminate?
or should use a pointer to correctly nil the variable through a container?eg.procedure A;var B:^iezthread;beginNew(B);B^:=iezthread.create;insert B in some listin a loop check in the list if B is terminated then Free(B)?
...Unless the container needs explicitely a pointer type, that is ... in which case you should be rather using a list of objects