Yes, I have tried to initialize worker thread's message queue before the calling listen(), but no effect !
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Arno Garrels > Sent: Friday, April 13, 2007 11:01 AM > To: ICS support mailing > Subject: Re: [twsocket] Listen exception > > Engi wrote: > > Since I put the code to create an instance of my TWSocketServer and > > the > > Listen() method in the thread's constructor, all is fine ! > > In this case the events are not running in worker thread context! > > Have you tried to initialize worker thread's message queue > before the calling listen()? > > Someting like: > > procedure TWorkerThread.Execute; > var > Msg : TMsg; > begin > PeekMessage(Msg, 0, 0, 0, PM_NOREMOVE); // Initialize > thread's message queue > Create the instance of TWSocketServer > try > Assign properties and events > Call Listen() > Call the message pump > finally > Destroy instance of TWsocketServer > end; > end; > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be