[Lazarus] TThread.Synchronize

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Oct 25 15:50:54 CEST 2016


On Tue, 25 Oct 2016 13:37:03 +0200
Michael Schnell via Lazarus <lazarus at lists.lazarus-ide.org> wrote:

> > If you don't call CheckSynchronize within MyForm.MyMethod then yes.  
> IMHO the (hardly documented)  CheckSynchronize should not be called 
> directly by an application that uses a Widget Type that features an 
> Event Queue. Here the user should do "Application.ProcessMessages", that 
> is decently documented.

CheckSynchronize checks the FPC thread queue.
Application.ProcessMessages calls CheckSynchronize and checks the LCL event queues.

It is not forbidden to call CheckSynchronize in a LCL application.

Mattias


More information about the Lazarus mailing list