[twsocket] Multithreaded Client Application

2006-08-07 Thread Éric Fleming Bonilha
Hello, I´m writing a multi-threaded client application I read the ICS code and there is written that to make a real multi-threaded application we should do ThreadAttach and use the messageloop procedure on the execute method of the working thread. I´m doing this, but, how do I stop this

Re: [twsocket] Multithreaded Client Application

2006-08-07 Thread Fastream Technologies
Hello Eric, You need a message handler for the thread with a while(GetMessage(...)). Peace be upon you, SZ - Original Message - From: Éric Fleming Bonilha [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, August 07, 2006 4:45 PM Subject: [twsocket] Multithreaded Client

Re: [twsocket] Multithreaded Client Application

2006-08-07 Thread Éric Fleming Bonilha
- Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, August 07, 2006 12:25 PM Subject: Re: [twsocket] Multithreaded Client Application Éric Fleming Bonilha wrote: So, one doubt that I have is, if I´m using a thread to process

Re: [twsocket] Multithreaded Client Application

2006-08-07 Thread Arno Garrels
Éric Fleming Bonilha wrote: the Execute should be something like this: Looks OK, principally :) --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Multithreaded Client Application

2006-08-07 Thread Éric Fleming Bonilha
Thanks a lot Arno! :) - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, August 07, 2006 2:13 PM Subject: Re: [twsocket] Multithreaded Client Application Éric Fleming Bonilha wrote: the Execute should be something

Re: [twsocket] Multithreaded Client Application

2006-08-07 Thread Wilfried Mestdagh
Hello Éric, FSocket is a pointer to socket passed to the thread´s constructor Execute method is ok. Dont forget to ThreadDetach before giving the socket to the thread. Aslo be aware that between the Detach/Attach there is no window assigned and the socket will not be notified of data. It is

Re: [twsocket] Multithreaded Client Application

2006-08-07 Thread Éric Fleming Bonilha
PM Subject: Re: [twsocket] Multithreaded Client Application Hello Éric, FSocket is a pointer to socket passed to the thread´s constructor Execute method is ok. Dont forget to ThreadDetach before giving the socket to the thread. Aslo be aware that between the Detach/Attach there is no window