Discussion:
problem in Asycronus down load
(too old to reply)
k***@gmail.com
2007-06-04 09:17:35 UTC
Permalink
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..
k***@gmail.com
2007-07-03 06:38:46 UTC
Permalink
Post by k***@gmail.com
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..
This forum seems to be a most idle forum in programing??
Scherbina Vladimir
2007-07-03 10:15:55 UTC
Permalink
Post by k***@gmail.com
This forum seems to be a most idle forum in programing??
Yap ;))

Now give me the code you're using. Also, what OS are you using? Is there any
AV installed?
--
Vladimir, Windows SDK MVP
Loading...