[fpc-pascal] changes in TThread.OnTerminate in fcp-3.0?
pascaldragon at googlemail.com
Thu Dec 10 14:49:50 CET 2015
Am 10.12.2015 12:15 schrieb "Luca Olivetti" <luca at ventoso.org>:
> It's obvious that you cannot free the thread from inside a "normal"
Synchronize call, it's no so obvious you cannot do it in the OnTerminate
method, so maybe a note could be added in
> The new implementation is clearly better....once you know *not* to free
the thread inside OnTerminate.
In all honesty it was never documented either that you *can* free the
object from within OnTerminate and in other occurrences you wouldn't free
the object that invoked the handler either, right? So why for TThread then?
=> no need to mention as a change
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal