Article View: borland.public.cppbuilder.internet.socket
Article #3432Re: TNMFTP Problems
From: Thomas Scott
Date: Thu, 15 Sep 2005 06:46
Date: Thu, 15 Sep 2005 06:46
34 lines
2368 bytes
2368 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:43266ce2$1@newsgroups.borland.com... > > "Thomas Scott" <tscott@magiqueproductions.com> wrote in message > news:432656fa$1@newsgroups.borland.com... > >> I have handler in the OnConnected event to perform the List() function. > > You cannot do that. The Connect() method performs various operations > after > connecting to the server. The OnConnected event, however, is triggered > before those operations can be performed. By calling List() inside the > OnConnected event handler, you are messing up TIdFTP's conversation with > the > server by causing commands to be sent in the wrong order. You must wait > until Connect() exits before doing anything that sends commands to the > server. > >> However, I keep getting an exception that says "530 You aren't logged >> in." > > Correct - you aren't logged in. By using the OnConnected event, you are > trying to perform operations on the server before TIdFTP's Login() method > can be called. > > > Gambit > > Thanks, that worked. And you just saved me $199 that I was about to spend on another FTP component. This one should work for me. Tom
Technical Details
Message-ID:
<4329186c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43246364$1@newsgroups.borland.com> <4325b844$1@newsgroups.borland.com> <432656fa$1@newsgroups.borland.com> <43266ce2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,eba4b90956be2c6e X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Thomas Scott" <tscott@magiqueproductions.com> From: "Thomas Scott" <tscott@magiqueproductions.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <43246364$1@newsgroups.borland.com> <4325b844$1@newsgroups.borland.com> <432656fa$1@newsgroups.borland.com> <43266ce2$1@newsgroups.borland.com> Subject: Re: TNMFTP Problems Date: Wed, 14 Sep 2005 23:46:24 -0700 Lines: 36 Organization: Magique Productions, Ltd. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 70.180.155.212 Message-ID: <4329186c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1126766700 70.180.155.212 (14 Sep 2005 23:45:00 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail