On 06/26/2014 03:20 PM, Michael Schnell wrote:


P.S.: perhaps the project is not even doable (in a perfectly compatible way) with the (Delphi compatible) implementation of TThread.Queue. (I just would need to be able to feed an Event in the Queue, but those means are "private" in TThread.) So maybe the holdoff will be forever.


I checked the code of TThread.Queue and in fact it does not queue the call if TThread.Queue is executed from the main thread, but performs the call right away.

This supposedly is not compatible with how Application.QueueAsyncCall works in other WidgetTypes.

Unfortunately the svn-version of the rtl does not provide a means to prevent this (queer, Delphi compatible) behavior.

So for full compatibility we would need an enhancement in the fpc-rtl.

-Michael
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to