[fpc-pascal] Question: Is there a global callback, when a thread gets terminated?
Michael Schnell
MSchnell at lumino.de
Mon Feb 11 11:21:20 CET 2019
> Yes, but how do I get notified, when the thread is gone, and I can free the
> memory (of the object that was created)?
Ah, now I finally see the problem :)
The only idea that comes in my mind is creating yet another thread or a TTimer (by means of "QueueAsyncCall") to poll if the original Threads still living. This supposedly would involve OS calls for getting the thread ID and for checking same for validity. Ugly ! :( .
-Michael
More information about the fpc-pascal
mailing list