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 call the sync or async Abort to not have more progblems :(

---
Rgds, Wilfried
http://www.mestdagh.biz

Monday, August 22, 2005, 16:27, Jan Schatz wrote:

 Hello,

 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
 client object had never been deleted. I get access violations.

 Has anybody experiences similar problems? And have you got solutions?

 Regards
 Jan



-- 
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


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
 client object had never been deleted. I get access violations.
 
 Has anybody experiences similar problems? And have you got solutions?

Use OnCloseQuery event to cancel the closing or abort the component.
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
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