k***@gmail.com
2007-06-04 09:17:35 UTC
1. When i try simultaneously on many files say 10, it will download
some five to six files and stops i.e, it doesn't even start the
downloading of rest four files. After sometime if i start on other
files it starts downloading, but hanged ones remain same status.
2. Sometimes it may even get hang after it completes 80% to 90% i.e,
other files start to downloads.
3. I'm using InternetOpen with INTERNET_FLAG_ASYNC flag. I'm doing
InternetOpen for every file i need to download.
4. Using InternetOpenUrl to connect to required URl.
5. I'm checking for the size of data available from the link using
InternetQueryDataAvailable.
6. Then Calling InternetReadFileEx with the available size of the
buffer and if read buffer size is greater than zero then writing it to
a file.
7. I'm coming out of while loop only when downloaded file is full or
handle becomes invalid anywhere in between or InternetReadFileEx
returns false.
(call back function using same as msdn asynch sample )
if im doing wrong way please currect me..
some five to six files and stops i.e, it doesn't even start the
downloading of rest four files. After sometime if i start on other
files it starts downloading, but hanged ones remain same status.
2. Sometimes it may even get hang after it completes 80% to 90% i.e,
other files start to downloads.
3. I'm using InternetOpen with INTERNET_FLAG_ASYNC flag. I'm doing
InternetOpen for every file i need to download.
4. Using InternetOpenUrl to connect to required URl.
5. I'm checking for the size of data available from the link using
InternetQueryDataAvailable.
6. Then Calling InternetReadFileEx with the available size of the
buffer and if read buffer size is greater than zero then writing it to
a file.
7. I'm coming out of while loop only when downloaded file is full or
handle becomes invalid anywhere in between or InternetReadFileEx
returns false.
(call back function using same as msdn asynch sample )
if im doing wrong way please currect me..