[fpc-devel] Suspicion about TThread.Synchronize

Luca Olivetti luca at ventoso.org
Wed Feb 6 19:33:55 CET 2019

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


More information about the fpc-devel mailing list