Discussion:
FTP
(too old to reply)
Charles Samuels
2007-07-10 17:12:29 UTC
Permalink
Hi, I am downloading data via ftp with :
NMFTP1->Host=hostname;
NMFTP1->Vendor = NMOS_AUTO;
NMFTP1->UserID = "anonymous";
NMFTP1->Password = "junk";
NMFTP1->Connect();
NMFTP1->ChangeDir(dirname);
NMFTP1->Download("alaska." + today, SaveFileName);

And everything works correctly, but I want to then go to another host and
obtain more data and when I try to disconnect from this host,

NMFTP1->Disconnect();

I get an Access Violation error.

Can anyone tell me what I am doing wrong?
Thanks Chuck
Remy Lebeau (TeamB)
2007-07-10 18:51:37 UTC
Permalink
You are using the Netmasters component suite, which is very old and very
buggy. That's why Borland/CodeGear doesn't bundle it with the IDE anymore.
I strongly suggest you switch to another FTP component. There are plenty of
other FTP components available, such as inside of Indy
(http://www.indyproject.org), ICS (http://www.overbyte.be), or Synapse
(http://www.ararat.cz/synapse). Or use Microsoft's WinInet API instead.


Gambit

Loading...