Inside the thread
While Not Terminated Do Begin ... Try FIDTCPCLIENT.DISCONNECT; FIDTCPCLIENT.CONNECT (FCONNECTTIMEOUT); FINALLY End; ... End; After the error, the thread is dead. Change to Except is ok. strange! ! !