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