[twsocket] TFtpClient FtpException Problem.

Raptor G g_ates@hotmail.com
Tue, 06 Jun 2000 18:10:14 EEST


I will try this and let you know.

Regards,

Raptor


From: "Wilfried Mestdagh" <wilfried_sonal@compuserve.com>
Reply-To: twsocket@elists.org
To: <twsocket@elists.org>
Subject: RE: [twsocket] TFtpClient FtpException Problem.
Date: Tue, 6 Jun 2000 10:31:15 +0200

Raptor,

When there is something assigned in the OnError event, the OnError event is
called. If not the exception is raised. If you wants to cach exceptions you
may not assign something to OnError.

rgds, Wilfried

 > -----Original Message-----
 > From: twsocket-admin@elists.org [mailto:twsocket-admin@elists.org]On
 > Behalf Of Raptor G
 > Sent: dinsdag 6 juni 2000 13:05
 > To: twsocket@elists.org
 > Subject: [twsocket] TFtpClient FtpException Problem.
 >
 >
 >
 > Hi,
 >
 > I know I have asked this before, but, I STILL cannot catch FtpExceptions.
 > Here's the code:
 >                 SetAddress();
 >                 try
 >                 {
 >                         FTP->Connect();
 >                         FTP->User();
 >                         FTP->Pass();
 >                         ChangeAndList(currentSite.Initial_Directory);
 >
 >                         DisconnectButton->Enabled = true;
 >                 }
 >                 catch(FtpException &e) // never reaches here
 >                 {
 >                         ShowError(e.Message);
 >                 }
 > The problem is, eventhough I have handled the FtpException, It insists on
 > raising the OnError event. I want the code to execute and if an anomaly
 > occurs, after showing the error, quit! I do NOT want it to execute
 > FTP->USer() if there is a problem with FTP->Connect();
 >
 > Is it a bug or something?
 >
 > Regards,
 >
 > Raptor G


_______________________________________________
TWSocket mailing list [http://elists.org/mailman/listinfo/twsocket]
Visit our website at http://www.rtfm.be/fpiette/indexuk.htm

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com