[fpc-pascal] TThread.FreeOnTerminate

Michael Van Canneyt michael at freepascal.org
Thu Dec 13 23:23:23 CET 2018

On Thu, 13 Dec 2018, Martin Frb wrote:

> ----
> Besides, the documentation does not say that FreeOnTerminate is limited 
> to be used in the thread construction. Especially since its effect is 
> not due until "terminate"

For me this is a given.

Almost by definition, changing anything in a thread after the constructor
has returned, is dangerous. You should set up everything in the constructor.

You can try to do so later on, but then you're on your own.


More information about the fpc-pascal mailing list