On 2011-09-21 15:21:18 +0200, Zaher Dirkey wrote: > On Wed, Sep 21, 2011 at 2:31 PM, Leonardo M. RamA(c) <[email protected]> > 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 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
