BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TNMFTP Problems

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Socket)
View previous topic :: View next topic  
Author Message
Thomas Scott
Guest





PostPosted: Sun Sep 11, 2005 5:04 pm    Post subject: TNMFTP Problems Reply with quote



I am using the TNMFTP component for a new application and am encountering
intermittent problems when I call the List() method. About 80% of the time
I will get and Exception that says "500 Unknown Command." And sometimes it
disconnects after this error and I have to reconnect. Is it normal to get
so many failures? Should I simply be catching these exceptions and retrying
all the time?

Also, sometimes the List() command doesn't get an exception, but I never get
the data back from the FTP host. But if I try to issue the command again,
it fails saying that a list command is already in progress. However, it
never times out even though I have a timeout set to 5000 milliseconds.

I hope someone can help here. I need to get this product complete fast and
these kinds of problems just side track everything.

Tom


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Sep 12, 2005 5:17 pm    Post subject: Re: TNMFTP Problems Reply with quote




"Thomas Scott" <tscott (AT) magiqueproductions (DOT) com> wrote


Quote:
I am using the TNMFTP component for a new application
and am encountering intermittent problems

The NetMaster components are notoriously buggy and problematic. You should
seriously consider changing to a different component.


Gambit



Back to top
Thomas Scott
Guest





PostPosted: Tue Sep 13, 2005 4:36 am    Post subject: Re: TNMFTP Problems Reply with quote



"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Thomas Scott" <tscott (AT) magiqueproductions (DOT) com> wrote in message
news:43246364$1 (AT) newsgroups (DOT) borland.com...

I am using the TNMFTP component for a new application
and am encountering intermittent problems

The NetMaster components are notoriously buggy and problematic. You
should
seriously consider changing to a different component.


Gambit



I've switched to the Indy component TIdFTP and now I have a different
problem. I have handler in the OnConnected event to perform the List()
function. However, I keep getting an exception that says "530 You aren't
logged in." I have checked all my parameters several times and my username,
password, and host are all correct. I even verified that my ftp is working
by logging in via IE.

Any ideas?

Tom



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Sep 13, 2005 6:09 am    Post subject: Re: TNMFTP Problems Reply with quote


"Thomas Scott" <tscott (AT) magiqueproductions (DOT) com> wrote


Quote:
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.

Quote:
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



Back to top
Thomas Scott
Guest





PostPosted: Thu Sep 15, 2005 6:46 am    Post subject: Re: TNMFTP Problems Reply with quote

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Thomas Scott" <tscott (AT) magiqueproductions (DOT) com> wrote in message
news:432656fa$1 (AT) newsgroups (DOT) 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



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Socket) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.