> 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

Reply via email to