[fpc-pascal] TThread.OnTerminate never called

Luca Olivetti luca at ventoso.org
Sun Apr 21 18:46:59 CEST 2019

El 21/4/19 a les 18:22, Dennis ha escrit:
> I am using FPC 3.0.4 Lazarus 2.00 on windows 64
> I created a subclass of TThread and found out that the 
> TThread.OnTerminate event was never called (I already assigned it).
> Also, I search the source code of TThread in classeh.inc and found that 
> there was no calling of FOnTerminate nor OnTerminate

function ThreadProc in objpas/classes/classes.inc calls 
Thread.DoTerminate, which in turn checks for FOnTerminate and calls it.


More information about the fpc-pascal mailing list