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?
Thanks in advance,
On 9/21/05, Wilfried Mestdagh <[EMAIL PROTECTED]> wrote:
> Hello Jacco,
> There is no difference if you wants to do in a thread if all your code
> is thread safe, and you need a message pump in the thread.
> The most easy way is to develop / test all in main thread, so that you
> know that eventually bugs are not because of threaded code bugs. To do
> so you make a separate object where all code is in that you need.
> Later when all is ready you just create / free your object in the
> threads execute method. To have a message pump you can use message pump
> from TWSocket.
> Rgds, Wilfried
> Wednesday, September 21, 2005, 12:54, Jacco Bezemer wrote:
> > Hi,
> > I want to connect (and reconnect) within a thread and send XML data
> > within that same thread.
> > How do I accomplisch this? Can someone help me on this?
> > I'm using Delphi 7.
> > Thanks in advance,
> > Jacco
> 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