Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

VB6-MultiThread Download

$
0
0
Attached is a simplified Multithreading example based on this download:
https://www.vbforums.com/attachment....3&d=1458791120

That project used winhttp.dll which had serious limitations, so I used wininet.dll instead as outlined here:
https://www.vbforums.com/showthread....-in-VB6-part-1

It was then tested in the IDE as well as compiled with the following results:
Start Thread1 33381.81
Start Thread2 33382.23
End Thread2 33382.27
End Thread1 33382.32
Download 1 is a 180 KB jpg file - elapsed time 510 ms
Download 2 is a 1 KB page file - elapsed time 40 ms

Thread2 using https:
Start Thread2 33715.95
End Thread2 33716.29 - 340 ms

Note: I found "exename" to be unreliable, so the executable name is located in the Project Properties Version Information under File Description. If you change the executable name, be sure to change the File Description as well.

J.A. Coutts
Attached Files

Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>