Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : How to prevent exception messages being shown in FTP client application & FTP.so

www.cryer.info
Managed Newsgroup Archive

How to prevent exception messages being shown in FTP client application & FTP.so

Subject:How to prevent exception messages being shown in FTP client application & FTP.so
Posted by:"Venkatesh VT" (ven..@vsnl.com)
Date:Wed, 27 Dec 2006 21:09:27 +0530

I have a client FTP application whcih is required to run in a machine which
is unattended.
It automaticallt dials through a GSM modem using GPRS to connect to the
internet(since it is located in a place where there is no othe means of
communication)
When ever the internet connection is broken it redials through RAS to
connect to connect to the internet.I find that an exception dialog is shown
with a message' 'Socket error #10051.Connection is reset by peer'
How do I prevent the message from displaying at all.(I am using try
..finally so that the program continues to run inspite of the Exception
messages)
I also would like to know what is the correct command to reinitiliase the
socket connection when a connection is broken & I have to redial the RAS
connection.I am presently using  FTP.socket.close  (where FTP is the IdFtp
component).How ever this works only if there is an existing connection that
is getting disconnected & gives an AV if there is no connection.I would like
to know the command which will not give an AV ,if it is executed with out a
disconnect for e.g. when no dial up itself has been done at all
Venkatesh

Replies:

www.cryer.info
Managed Newsgroup Archive