Re: [fpc-pascal] Context of TThread.OnTerminate

2011-02-24 Thread Wimpie Nortje
Thanks Mattias and Michael On 2011/02/24 05:51 PM, michael.vancann...@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 TThrea

Re: [fpc-pascal] Context of TThread.OnTerminate

2011-02-24 Thread michael . vancanneyt
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 OnT

Re: [fpc-pascal] Context of TThread.OnTerminate

2011-02-24 Thread Mattias Gaertner
On Thu, 24 Feb 2011 15:36:17 +0200 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 >

[fpc-pascal] Context of TThread.OnTerminate

2011-02-24 Thread Wimpie Nortje
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? Thanks