[Lazarus] TThread.WaitFor blocks the main event loop under Linux

Luca Olivetti luca at wetron.es
Fri Oct 8 18:40:04 CEST 2010


Al 08/10/10 15:17, En/na Graeme Geldenhuys ha escrit:

>
> If you use the MyThread.WaitFor to wait for the thread to finish, then
> the application is instantly frozen (even the thread), nothing gets
> updated and you have to kill the process. For some reason
> WaitFor blocks the main thread's event loop. It seems this issue is
> only under FPC apps and under X11 (no matter the GUI toolkit),
> it works fine under Windows.

I'm surprised it works under windows: using synchronize and waitfor has 
always been a no-no.

Bye
-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133)  Fax +34 93 5883007




More information about the Lazarus mailing list