Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FtpOpenFile bug

Status
Not open for further replies.

wduty

Programmer
Jun 24, 2000
271
US
I was having problems iterating/reading through files from an ftp server. When reading the whole of each file everything was fine but attempting to read just the first few bytes of each file caused a strange behavior: every second and third call to FtpOpenFile() failed with error 12003. It turns out that there is a known bug:

Q238796, BUG: FtpOpenFile Fails If Files Are Not Read Completely

but the solution they offer is to read all the data off the handle. This is not practical for huge files and defeats the purpose of trying to read only a small part of the file. The other info at the bottom of the article appears to give an illustration of doing this so-called "resolution" of the problem.

Does anyone know of a solution for this other than creating a separate connection handle for every file?

Any help appreciated.
--Will Duty
wduty@radicalfringe.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top