🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IdFTP1->List problem

#1290
From: David Ayre
Date: Fri, 16 Feb 2007 14:25
39 lines
1917 bytes
Thanks Tom,

That seems to have solved the problem.

Cheers,

David


"Tom" <tom@nospam.net> wrote:
>David,
>
>Without knowing the exact exception that's being thrown, I can only
>give you a general try catch example. Once you get the exception
>name I would only catch that exception so you can deal with any
>others that may show up accordlingly.
>
>try
>{
>  IdFTP1->List(SL, "", false);
>}
>catch (Exception &e)
>{
>   // This will catch every exception and handle them the same
>   //  way. If you have different exceptions coming up, you need to
>   // catch them separately by using the proper names.
>  //  IE: catch (EIdSocketError &e) or catch (EIdProtocolReplyError)
>
>   // If you need to do something special, put that code here.
>   // otherwise the error message will disappear. Please remember
>   // that the error will still be shown if you're using the debugger.
>}
>
>Regards,
>
>Tom 
>
>
Technical Details
Message-ID: <45d5bef2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45d30c11$1@newsgroups.borland.com> <45d34eeb@newsgroups.borland.com> <45d430c5$1@newsgroups.borland.com> <45d470f5$1@newsgroups.borland.com> <45d4ad13$1@newsgroups.borland.com> <45d50e74$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,56e043fe6a8aa103
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "David Ayre" <davidcayre@ntlworld.com>
Sender: "David Ayre" <davidcayre@ntlworld.com>
Reply-To: "David Ayre" <davidcayre@ntlworld.com>
Subject: Re: IdFTP1->List problem
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 81.96.129.134     
References: <45d30c11$1@newsgroups.borland.com> <45d34eeb@newsgroups.borland.com> <45d430c5$1@newsgroups.borland.com> <45d470f5$1@newsgroups.borland.com> <45d4ad13$1@newsgroups.borland.com> <45d50e74$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <45d5bef2$1@newsgroups.borland.com>
Date: 16 Feb 2007 06:25:54 -0800
X-Trace: newsgroups.borland.com 1171635954 207.105.83.66 (16 Feb 2007 06:25:54 -0800)
Lines: 40
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail