Thread View: borland.public.cppbuilder.internet.socket
5 messages
5 total messages
Started by Thomas Scott
Sun, 11 Sep 2005 17:04
TNMFTP Problems
Author: Thomas Scott
Date: Sun, 11 Sep 2005 17:04
Date: Sun, 11 Sep 2005 17:04
16 lines
1837 bytes
1837 bytes
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
Re: TNMFTP Problems
Author: Remy Lebeau (TeamB)
Date: Mon, 12 Sep 2005 17:17
Date: Mon, 12 Sep 2005 17:17
12 lines
1249 bytes
1249 bytes
"Thomas Scott" <tscott@magiqueproductions.com> wrote in message news:43246364$1@newsgroups.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
Re: TNMFTP Problems
Author: Thomas Scott
Date: Tue, 13 Sep 2005 04:36
Date: Tue, 13 Sep 2005 04:36
28 lines
1952 bytes
1952 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:4325b844$1@newsgroups.borland.com... > > "Thomas Scott" <tscott@magiqueproductions.com> wrote in message > news:43246364$1@newsgroups.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
Re: TNMFTP Problems
Author: Remy Lebeau (TeamB)
Date: Tue, 13 Sep 2005 06:09
Date: Tue, 13 Sep 2005 06:09
22 lines
1943 bytes
1943 bytes
"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
Re: TNMFTP Problems
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads