Article View: borland.public.cppbuilder.internet.socket
Article #2086Re: Indy 9 TIdFTP EIdConnClosedGracefully etc.... (repost)
From: Skaarak
Date: Wed, 09 Aug 2006 21:24
Date: Wed, 09 Aug 2006 21:24
35 lines
2296 bytes
2296 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:44da0c3a$1@newsgroups.borland.com... > > "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. Ah Gambit, my favorite debugger. =) So, adding EIdSilentException to my debugger list stops the EIdConnClosedGracefully exceptions. (What's F9? I've remapped my IDE) But even after stopping the exceptions the FTP->List() command just hangs. No time out, no error, just hangs. Its odd. As per my last message, it worked in version 8, but not in 9. Any thoughts? -Cory
Technical Details
Message-ID:
<44da527f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44da0822$1@newsgroups.borland.com> <44da0c3a$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: "Skaarak" <skaarak@NOakamailSPAM.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <44da0822$1@newsgroups.borland.com> <44da0c3a$1@newsgroups.borland.com> Subject: Re: Indy 9 TIdFTP EIdConnClosedGracefully etc.... (repost) Date: Wed, 9 Aug 2006 15:24:34 -0600 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 63.231.79.30 Message-ID: <44da527f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155158655 63.231.79.30 (9 Aug 2006 14:24:15 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail