Re: [fpc-pascal] PostMessage vs. QueueAsyncCall

2014-09-19 Thread Mattias Gaertner
On Fri, 19 Sep 2014 17:20:27 +0800 Xiangrong Fang wrote: >[...] > My question is, why cannot Lazarus just use PostMessage, but invent the > QueueAsyncCall() method? What is the rationale, or, why PostMessage is > considered windows-ish (read: not fit into LCL very well?), apart from the > fact t

Re: [fpc-pascal] PostMessage vs. QueueAsyncCall

2014-09-19 Thread Michael Schnell
On 09/19/2014 11:20 AM, Xiangrong Fang wrote: Hi, In a previous email asking about PostMessage, Michael suggested I used QueueAsyncCall instead, In fact now that I know what you are trying to accomplish (a Thread Pool) I take back the suggestion of QueueAsyncCall, as same is supported by Laza

[fpc-pascal] PostMessage vs. QueueAsyncCall

2014-09-19 Thread Xiangrong Fang
Hi, In a previous email asking about PostMessage, Michael suggested I used QueueAsyncCall instead, because although it's OK to use PostMessage, but it is considered a Windows Legacy, or only for Delphi compatibility. However, in actual use, I feel that PostMessage does a better job for code separ