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?
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.
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.
Summary: Hi there i`m in need of some help with a connection string to an access db on an ftp site that has a usr name and pass word...is this possible??? or does it have to be http? please help. this is what ...
Summary: Hey I'm working on this game written in VB. I'm just trying to get my skills up before my friend can start helping me again. He's coming out of hospital again soon.. Poor guy. Anyhow, I'm writing t...
Summary: You can delete the line numbers in VB6, they are not needed. As Razor says, they are a throwback to DOS BASIC. The application was probably converted from a DOS BASIC application and is probably fu...