[fpc-devel] Suspicion about TThread.Synchronize

Martin Frb lazarus at mfriebe.de
Wed Feb 6 19:29:53 CET 2019


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?

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)



More information about the fpc-devel mailing list