Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : TidFTP Any way to catch what error cause issue?

www.cryer.info
Managed Newsgroup Archive

TidFTP Any way to catch what error cause issue?

Subject:TidFTP Any way to catch what error cause issue?
Posted by:"Vincent" (vydori..@gmail.com)
Date:Wed, 11 Oct 2006 07:39:11

In my code I have the following:

  FTPConnection.Host := ServName;
  FTPConnection.Username := UserName;
  FTPConnection.Passive := True;
  FTPConnection.Password := Passwd;
  FTPConnection.Connect;
Try
   FTPConnection.Put(PutFileName,PutFileName,True);
  Except
     Result := False;
     FTPConnection.Disconnect;
     Exit;
  End;

On my develpoment machine it works fine, but on the production machine it
throws an expection every time and does not put anything on the FTP server
(testing with an internal machine). It is not a network issues as I can use
the commandline ftp programin in Windows to connect with out issue. Is there
a way to know what the error is that is causing the exception to be thrown?
I do not see anything in the doc's.

Replies:

www.cryer.info
Managed Newsgroup Archive