On 12/01/11 16:36, Michael Schnell wrote:
On 01/12/2011 05:14 PM, Henry Vermaak wrote:

I just tested again here, and using postmessage with gtk2 from an
external thread (from a library) works perfectly.
As taken from some example code, I just created a user thread with
TMyThread.create(). It does run and does

while not Terminated do begin
sleep(2000);
PostMessage(Handle, LM_MY_MESSAGE, 2, 0);

Are you really posting the message to the _thread_ handle? You probably want to post it to e.g. Form1.Handle.

Henry

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

Reply via email to