Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : IdFTP: Freeze when internet connection disconnects

www.cryer.info
Managed Newsgroup Archive

IdFTP: Freeze when internet connection disconnects

Subject:IdFTP: Freeze when internet connection disconnects
Posted by:"Andy" (an..@ascomp.de)
Date:30 Mar 2007 06:09:47

Hello,

if I disconnect my internet connection while IdFTP is uploading a file
it just freezes.

I do it this way:

              try
                    IdFTP.Put(FTPStream1, FTPFileName, false);
              except
                    ShowMessage('disconnected');
              end;

But after disconnecting I'm waiting a few minutes and nothing happens,
progress just stands at the same value, application is freezed.

Timeouts: 10000 for all (read, transfer, listen).

Environment: Delphi 7 Prof., Windows Vista, DSL Router.

Any hints?

Best regards,

Andy

Replies:

www.cryer.info
Managed Newsgroup Archive