🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2084

Re: Indy 9 TIdFTP EIdConnClosedGracefully etc.... (repost)

#2084
From: Remy Lebeau (TeamB)
Date: Wed, 09 Aug 2006 16:23
20 lines
1757 bytes
"Skaarak" <skaarak@NOakamailSPAM.com> wrote in message
news:44da0822$1@newsgroups.borland.com...

> FTP2->List(RawDir->Items, "*", true);
>
> When I hit the list command I get the EidConnClosedGracefully exception.

As you should be.  The FTP protocol uses a secondary connection for data
transfers and directory listings.  You are simply seeing the exception that
is generated when the server closes that second connection.  List() will
catch that exception internally.  It will not reach your own code.  Since
you are running your code inside the IDE debugger, the debugger will see all
exceptions.  Simply press F9 to pass the exception back to the project for
normal handling.  You should also add EIdSilentException (which
EIdConnClosedGracefully derives from) to your debugger's list of exceptions
to ignore.


Gambit
Technical Details
Message-ID: <44da0c3a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44da0822$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cd863af49bc3aa8d
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <44da0822$1@newsgroups.borland.com>
Subject: Re: Indy 9 TIdFTP EIdConnClosedGracefully etc.... (repost)
Date: Wed, 9 Aug 2006 09:23:02 -0700
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <44da0c3a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1155140666 68.69.17.41 (9 Aug 2006 09:24:26 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail