El 6/2/19 a les 19:29, Martin Frb ha escrit:
On 06/02/2019 16:19, Luca Olivetti wrote:
. In my case the problem is with Synchronize, the synchronized method
is never called and the thread gets stuck there.
"synchronized method is never called"
So is the main thread running, and either idle, app.ProcessMessages, or
CheckSynchronize?
Yes, in fact the synchronize from other threads are executed with no problem
The other issue (though that should be obvious) is never to wait on a
thread, inside the synchronize event. (I.e. you can call
Thread.Terminate; in a synced event, but must not call Thread.waitFor)
I never do that
Bye
--
Luca
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel