[fpc-pascal] Does TThread.Execute terminate thread on exit?

Tobias Giesen tobiasgiesen at gmail.com
Sun Nov 1 17:56:03 CET 2015

Yes it will terminate and free (if FreeOnTerminate is true).


Please excuse the shortness of this mail which was sent from my mobile phone. If necessary, I will send more information later.

Tobias Giesen

> On 01.11.2015, at 15:25, Bo Berglund <bo.berglund at gmail.com> wrote:
> I have seen that the Execute method must chect for Terminated in its
> loop and exit if Terminated is set to true.
> But I cannot find mention on what happens if the Execute method exits
> without Terminated having first been set.
> Does this cause the thread itself to terminate and free or what
> happens?
> -- 
> Bo Berglund
> Developer in Sweden
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

More information about the fpc-pascal mailing list