[Lazarus] Message Loop paused when no interaction with mouse?

Bernd prof7bit at googlemail.com
Wed Apr 20 15:51:33 CEST 2011

2011/4/20 Michael Schnell <mschnell at lumino.de>:

> Running my testing program with the GTK "Widget Type", with the newest svn
> version, TThread.Synchronize in fact seems to work

I have now updated to SVN rev. 30401 and the attached demo shows the
error. Synchronize does not work. The demo contains nothing but an
edit and a thread that will write numbers into the edit field via a
call to Synchronize(). As soon as take focus away or even just stop
moving the mouse the thread will block in a call to Synchronize().

Are there any other ways under GTK2 (or xorg?) to send a message to a
window that simulates user interaction? I need to find some kind of
workaround to wake up the GUI.

What exactly does the TTimer do when it fires its event? The TTimer
seems to have the power to wake up the GUI, maybe I can do the same

More information about the Lazarus mailing list