On 02/18/2011 04:56 PM, José Mejuto wrote:
You can use Syncronize, the syncronized procedure raises the event in
your code.

Unfortunately, with these Widget sets, TThread.Synchronize does not work, either :( (see FPC bug tracker)

Application.QueueAsyncCall is more suitable, as it
1) allows to transfer the data block to the main thread in a single step and 2) does not block the thread while it waits for handling by the main thread (Which is done in "TThread.Synchronize" (but not in the Delphi-only "TThread.Queue").

-Michael


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to