[Lazarus] problem with gtk2 Event Queue

Henry Vermaak henry.vermaak at gmail.com
Mon Jan 24 11:43:36 CET 2011


On 24/01/11 09:56, Michael Schnell wrote:
> On 01/21/2011 05:57 PM, Michael Schnell wrote:
>> Very funny:
>>
>> I did a slightly less complex test program and here
>> TThread.synchronize does work as expected in gtk2.
>
> I found that the difference is this:
>
> If the memo that displays the messages resulting from the threads
> activity (via TThread.Synchronize or via Application.QueueAsyncCall) has
> the focus, the event does work. If the memo does not have the focus (as
> another control element on the Form or the Window of another application
> has the GUI focus) the queued Events do get handled in the main (GUI)
> thread.

The QueueAsyncCall bug is known, as I've said before.  Please create a 
bug report for Synchronize with an example project.  They can be marked 
as related if it turns out that way.

Henry




More information about the Lazarus mailing list