[twsocket] processmessages or messagepump

2008-07-16 Thread info2004
Hi, In my thread (I know, you don't need threads...), in the execute procedure, should I call WSocket.ProcessMessages, or WSocket.MessagePump? Are they the same? If not, what is the difference? Thanks, Andy -- To unsubscribe or change your settings for TWSocket mailing list please goto http:/

Re: [twsocket] processmessages or messagepump

2008-07-16 Thread Francois PIETTE
> In my thread (I know, you don't need threads...), in the execute > procedure, > should I call WSocket.ProcessMessages, or WSocket.MessagePump? > > Are they the same? If not, what is the difference? No, they are not the same. Have a look at the source code and the comments in the source code. Th

Re: [twsocket] processmessages or messagepump

2008-07-16 Thread info2004
Hi again, When I got my grep correct, I found it in WSocket.pas. Looks like they are the same when multithreaded is true. ...Andy info2004 wrote: > Hi, > > In my thread (I know, you don't need threads...), in the execute procedure, > should I call WSocket.ProcessMessages, or WSocket.MessagePum

Re: [twsocket] processmessages or messagepump

2008-07-16 Thread Arno Garrels
info2004 wrote: > In my thread (I know, you don't need threads...), in the execute > procedure, should I call WSocket.ProcessMessages, or > WSocket.MessagePump? TWSocket.ProcessMessages processes pending messages once and returns. You should call TWSocket.MessageLoop instead since it waits for