Re: [twsocket] Connect timeout on deleted object

2005-08-22 Thread Wilfried Mestdagh
Hello Jan, I think you better use the async methods then you never will have sutch problems. If you use sync then you have to take all that into account because the code is looping whilst waiting for a result. If you want to stay sync then call the Abort method, but I dont know if you should

Re: [twsocket] Connect timeout on deleted object

2005-08-22 Thread Francois Piette
I dynamically create an instance of TFtpClient and try to connect to a host using the synchronous method. Then The user closes my sub form and thus deletes the FTP client object. If the connection cannot be established, e.g. due to a false IP, my code runs on to handle this, as if the FTP