Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 program hangs until action is taken

Status
Not open for further replies.

tammy104

IS-IT--Management
Aug 5, 2004
1
US
Hi All
I have a VB6 program that inconsistantly hangs at a specific point in the program. It will sit there forever until an action is taken like clicking the mouse in the program or someone even just hitting ctrl-alt-del. Then it resumes normally.

I foud a way to avoid the problem when I was troubleshooting and I was using a remote control program to view the system. When I am remotley viewing the system from another computer using pcanywhere it never hangs.

The problem happens on several OS and hardware types.

Any ideas ??
Thank you.
 
More information please:

a) Is your project a stand alone exe? If not, what is it?

b) If it is, then is the "StartUp Object" (in the "Project Properties") a form or a Sub Main (without a form)?

c) If it is a form, is it completing the form's Load and Activate events?

d) Describe the architecture of the "StartUp Object"

Cheers ... Greg.

"Life is full of learning, and then there is wisdom"
 

Sounds like you are doing a lot of processing in a loop or two. Perhaps a DoEvents every so many iterations may help.

Good Luck

 
Check that you dont have any explicit SetFocus commands in there. I have seen this kind of behaviour when validation code keeps playing 'focus tennis' between input controls.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top