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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to