[Lazarus] Thread finalization
Leonardo M. Ramé
l.rame at griensu.com
Wed Sep 21 15:24:36 CEST 2011
On 2011-09-21 15:21:18 +0200, Zaher Dirkey wrote:
> On Wed, Sep 21, 2011 at 2:31 PM, Leonardo M. RamA(c) <l.rame at griensu.com>
> wrote:
>
> A if Assigned(FMyThread) then
> A begin
> A A FMyThread.Terminate;
> A A while not FMyThread.Finished do
> A A A CheckSynchronize(100);
> A A FreeAndNil(FMyThread);
> A end;
>
> try
> A A FMyThread.Terminate;
> A A FMyThread.WaitFor;
> ....A A A
>
> --
> Zaher Dirkey
Zahker, using WaitFor blocks the app.
Also, as I said in the original post, that part is working ok.
--
Leonardo M. Ramé
http://leonardorame.blogspot.com
More information about the Lazarus
mailing list