I am attempting to troubleshoot a VB6 SP3 application that is using the WININET functions. Apps in use IE5, DynaZip 4 aXControls, ADO (ODBC to VFP tables). The app never fails on Network - Internet Connection. The app never fails on Network - DSL internet connection. The app always fails on Modem (regardless of speed) - Internet connection.
I can download multiple files (150) without the problem. But when I download files larger than 1MB our systems lock. I need to use FTPOpenFile in combination with InternetReadFile so I can update a progress bar. Heres the process:
vbH = FreeFile()
Open File name..Binary.. #vbH
h1 = InternetOpen..
h2 = InternetConnect..
h3 = FTPOpenFile..
WHILE
InternetReadFile
PUT #vbH
Update Progress Bar
WEND
CLOSE #vbH (line that locks if file is bigger than 1MB)
InternetCloseHandle h3..
Other Internet handles are closed later.
Here's my questions:
Does VB have a session byte limit on data placed in a file?
Any reason why it locks up when the process is done and I'm closing the VB created local file?
Terry Rooks
Software Systems Architect
Microsoft Certified Solution Developer.Net
If at first you don't succeed, then skydiving definitely isn't for you.