Computing.Net > Forums > Programming > VB6 FTP hangs - Multithread needed?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB6 FTP hangs - Multithread needed?

Reply to Message Icon

Name: siteforge (by Greg Apel)
Date: December 17, 2005 at 12:32:43 Pacific
OS: WinXP Pro
CPU/Ram: 800mhz AMD Duron
Comment:

My question is probably pretty basic.

While I am downloading via FTP using the wininet.dll, my application freezes until the download is complete. Then, it frees up the controls.

I think what I need is multithreading capability, to allow the download to proceed uninterrupted, and still let the user to click on command buttons, etc. without getting the "(program not responding)" in the form caption.

Any advice?



Sponsored Link
Ads by Google

Response Number 1
Name: Stephen Hall
Date: December 17, 2005 at 14:27:38 Pacific
Reply:

Greg,

I'm not really familiar with the wininet.dll or using VB to download stuff, but it sounds like you're on the right track. You might see if there is a way to call whatever function you call that hangs in an asynchronous way so as to avoid the complexity of making the new thread yourself. Some flag that has the word 'ASYNC' in it might exist for the particular function. If you're not sure exactly what function you hang on, step through the code in the debugger until the application "hangs", then you'll know which function you call that makes the hang occur. Good luck and keep us posted.

Stephen

"Live long and PROGRAM......or at least do _something_ with all that time...!"


0

Response Number 2
Name: SN
Date: December 19, 2005 at 07:09:28 Pacific
Reply:

I know how to do this in VB.NET, but not VB6...But this article seemed to have the information you need.

Good luck,
SN


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB6 FTP hangs - Multithread needed?

VB6 FTP Access connection string www.computing.net/answers/programming/vb6-ftp-access-connection-string/13697.html

VB6 FTP Send + IP Receiver. www.computing.net/answers/programming/vb6-ftp-send-ip-receiver/19645.html

Syntax in VB6 www.computing.net/answers/programming/syntax-in-vb6/15565.html