[fpc-pascal] Context of TThread.OnTerminate

Wimpie Nortje wimpienortje at gmail.com
Thu Feb 24 17:17:19 CET 2011


Thanks Mattias and Michael

On 2011/02/24 05:51 PM, michael.vancanneyt at wisa.be wrote:
>
>
> On Thu, 24 Feb 2011, Wimpie Nortje wrote:
>
>> Hi everybody,
>>
>> The manual (possibly Delphi one) says that TThread.OnTerminate executes
>> in the GUI thread. This is easy if the GUI thread owns the TThread.
>>
>> Suppose the GUI owns a TTHread which owns a subthread. In which context
>> does the subthread's OnTerminate execute?
>
> Always the main thread; no matter in which thread a thread was started.
>
> There simply is no information about which thread has started another
> particular thread.
>
> Michael.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list