Re: [twsocket] problems with OnDataAvailable

2005-06-27 Thread Wilfried Mestdagh
Hello Frank, You use methods for UDP to receive, and you use TCP. Another problem is that you use a ShowMessage in the event handler witch call the message pump, so your ondataavailable can be re-entered if you send next packet whil the window is still open. Probably this is for test/logging but t

[twsocket] problems with OnDataAvailable

2005-06-27 Thread Frank Wunderlich
Hi, i trying to send a record with TWSocket in delphi (code below). send/receive works well, but when i close the connection to the server. OnDataAvailable is fired and i get a message (from my showmessage) with strange signs. That means i cast the incoming data to my record an get something usele