|Subject:||Indy 9.0 Delphi 7 and TCPclient disconnect problem|
|Posted by:||Grobi (grobi…@gmx.net)|
|Date:||Thu, 1 Jun 2006|
I'm using Delphi 7 with the shipped Indy9 Components and I have a problem
It occures when the client is connected to a TCPServer and the server shuts
On the Clientside I create a Thread which calls the TCPClient.readln
function to receive data from the server.
On Disconnect I terminate the thread( while not Thread.terminated do begin
Thread.terminate;application.processmessages;end; ) , but than the execute
method of the thread crashes with an accessviolation while it tries to
execute the TCPClient.readln function. I have no idea how to get around with
Is there anyone who got the same problem and found a way to solve it?
Or is there a better way to receive the data as from a thread???