download file ( but not exist ) -> Connection LOST WHY ?

Giganews Newsgroups
Subject: download file ( but not exist ) -> Connection LOST WHY ?
Posted by:  Ruggero Cross (Ruggero19…@yahoo.com)
Date: Wed, 14 Sep 2005

Hi

I'm using Indy 10 with Delphi 7.

code :

      try

NMFTP1.Get('Filename-NOT-Exist-in-FTP-Dir.txtf',ExtractFilePath(Application.
ExeName)+'nomefile.txt',True);
      except
      end;

    code...

All ok , if file Exist.

but

if not exist....  show an exception ( ok , i can use Try-except )

and.... NMFTP1.connection is LOST/DOWN    !!!!
and....  NMFTP1 is Free  <- DANGER for me

Why ?

Replies