 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Thomas Scott Guest
|
Posted: Sun Sep 11, 2005 5:04 pm Post subject: TNMFTP Problems |
|
|
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
|
Posted: Mon Sep 12, 2005 5:17 pm Post subject: Re: TNMFTP Problems |
|
|
"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
|
Posted: Tue Sep 13, 2005 4:36 am Post subject: Re: TNMFTP Problems |
|
|
"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
|
Posted: Tue Sep 13, 2005 6:09 am Post subject: Re: TNMFTP Problems |
|
|
"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
|
Posted: Thu Sep 15, 2005 6:46 am Post subject: Re: TNMFTP Problems |
|
|
"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 |
|
 |
|
|
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
|
|