Article View: borland.public.cppbuilder.internet.socket
Article #2096Re: Indy 9 TIdFTP EIdConnClosedGracefully etc.... (repost)
From: Skaarak
Date: Fri, 11 Aug 2006 19:29
Date: Fri, 11 Aug 2006 19:29
31 lines
2337 bytes
2337 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:44dcc77f$1@newsgroups.borland.com... > > "Skaarak" <skaarak@NOakamailSPAM.com> wrote in message > news:44dca1d2@newsgroups.borland.com... > >> I've included the FormCreate function as well so you can see what's in >> it. > > DO NOT use the OnCreate event in C++! It is a Delphi idiom that produces > illegal behavior in C++ as it can be triggered before the constructor. > Use > the actual constructor instead. > >> Stepping through the code I get to this line >> FTP2->List(RawDir->Items,"*", >> true); int the ParseDirectory function before it fails and throws the > Dialog Box. > > Did you try putting try..catch blocks into your code yet? Okay, put in the try/catch block where located, and the FTP2->List command catchs an exception and my function ends. No idea what to do next, doesn't do me any good if List just fails. Move all items out of the "OnCreate" event into the constructor -Cory ps. Is there any way to go from Indy 9 to 8 easily?
Technical Details
Message-ID:
<44dcd9f4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.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-mailReferences:
<44da0822$1@newsgroups.borland.com> <44da0c3a$1@newsgroups.borland.com> <44da527f@newsgroups.borland.com> <44da5f29$1@newsgroups.borland.com> <44da6c13$1@newsgroups.borland.com> <44da795d@newsgroups.borland.com> <44dbb9a3$1@newsgroups.borland.com> <44dbcbbb$1@newsgroups.borland.com> <44dca1d2@newsgroups.borland.com> <44dcc77f$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> <44da527f@newsgroups.borland.com> <44da5f29$1@newsgroups.borland.com> <44da6c13$1@newsgroups.borland.com> <44da795d@newsgroups.borland.com> <44dbb9a3$1@newsgroups.borland.com> <44dbcbbb$1@newsgroups.borland.com> <44dca1d2@newsgroups.borland.com> <44dcc77f$1@newsgroups.borland.com> Subject: Re: Indy 9 TIdFTP EIdConnClosedGracefully etc.... (repost) Date: Fri, 11 Aug 2006 13:29:30 -0600 Lines: 33 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: <44dcd9f4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155324404 63.231.79.30 (11 Aug 2006 12:26:44 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.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