Helo Francois and Wilfried, Thanks for your tips. I managed to get it working in a single thread.
I think I need to do this in a thread because the send operation takes a long time. This due to the fact that retrieving the data, formatting it into XML and sending it eventually is in a loop and is not event driven. I'm investigating on how to make this event-driven so I don't need multi-threading. Both many thanks for your input, Jacco On 9/21/05, Francois PIETTE <[EMAIL PROTECTED]> wrote: > > I'm not that familair with building multi-threaded applications, I > > gave it a try but I didn't get it working. When I connect in the main > > thread and create a thread in the onsessionconnect event, it works. > > But when I terminate the thread and want to reconnect in the main > > thread, I get a Winsock error (10022). > > > > So I have got it working as an object in the main thread. Can I put > > all the code in the thread execute part? > > You should first describe what you want to do. I mean at the application > level. Then we could probably help you much. One of the questions I have is: > Why do you think you need multithreading with an asynchronous component ? > > Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html > -- > [EMAIL PROTECTED] > The author for the freeware multi-tier middleware MidWare > The author of the freeware Internet Component Suite (ICS) > http://www.overbyte.be > > > -- > 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 > -- 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