Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Apr : Re: tidFTP : connection closed gracefully prevents my app from closing...help
| Subject: | Re: tidFTP : connection closed gracefully prevents my app from closing...help |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Fri, 25 Apr 2008 09:58:25 |
"dave" <richocet2@hotmail.com> wrote in message
news:4811e7da$1@newsgroups.borland.com...
> IdFTP1.Disconnect();
>
> right at this line.
TIdFTP.Disconnect() sends a QUIT command to the server. If the server has
already disconnected, that could be the section that is raising the
exception. Disconnect() has a try..finally internally to make sure the
socket is closed, but it will not block the exception if raised. You can
set the ANotifyPeer parameter of Disconnect() to False if you want to bypass
the QUIT command.
Gambit