VB6 IDE freezes Windows 7
Oh boy. Am I in trouble!
I am still using VB6 and recently installed it on a Windows 7 Home computer. I set the compatibility for VB6.exe to Windows XP(service pack 3).
I have a large program with 37 forms and 8 modules.
Form 1 is the startup form. It calls form 2. On a button click on form 2, it calls form 3.
When I put a breakpoint on the first statement in Form_Load in form 3. The VB totally freezes when that statement gets executed. Same with other statements. Nothing works. I have to use TaskMgr.exe to kill Visual Basic. Same with other forms.
I only got the Windows 7 machine about two months ago and everything worked fine as far as I remember. This freezing just started about two weeks ago and I have no idea why.
It means IDE is useless and I can not debug the program.
Can anyone help??
Peter
Re: VB6 IDE freezes Windows 7
Before doing a System Restore (before 2 weeks) try remembering if you did install new service packs? Windows Updates?
Also you should not run as windows xp... leave it normal (uncheck run as windows xp).
Re: VB6 IDE freezes Windows 7
Quote:
Originally Posted by
Max187Boucher
Before doing a System Restore (before 2 weeks) try remembering if you did install new service packs? Windows Updates?
Wouldn't that stuff be listed in under the uninstall programs section of the control panel if he had installed them?
Re: VB6 IDE freezes Windows 7
Yes it should show there. It should also show in the system restore points (dates).
Re: VB6 IDE freezes Windows 7
clear temp files try again this happen to me also i got this large project when i run ide project runs when i run it again the project crashes without errors and entire project disappears .
it happens when there is so much codes and forms in 1 project just stupid to have so much but bugger to.
it can be lack of ram or some code that gets fired makes programme crash
Re: VB6 IDE freezes Windows 7
Quote:
Originally Posted by
Max187Boucher
Before doing a System Restore (before 2 weeks) try remembering if you did install new service packs? Windows Updates?
Also you should not run as windows xp... leave it normal (uncheck run as windows xp).
-----------------------------------------
Thanks Max for the response.
However, the same results occur when I went back to my old XP computer. I even reformatted the hard drive and reloaded Windows XP Service Pack 3 with all the drivers, WinXP updates and Visual Studio w/SP6. Same results.
So, it can't be Windows or the upgrades.
Strange, when IDE freezes, I can only use F5 and F8. Everything else is froozen.
Re: VB6 IDE freezes Windows 7
:pthis user to happen to me allot , uninstall , reinstall / custom directory / make custom dir and install there give it a try on winxp tho
Re: VB6 IDE freezes Windows 7
I have learned to not stuff with the Form_Load event.
And I even go further, and I am selective about what code I place in there (Some goes in to Form_Activate, with a wee flag to avoid the code running twice). (Not saying removing some code in this instance will help, since you say that you cannot even break on the first line)
I would try to avoid placing breaks in the Form_Load (if you can).
Use Debug.Print instead.
There will be some (many) that think I am too cautious.
And there may be some that say I am wrong.
If they say that to me, then I will say this to you -
I told the Doctor it hurts when I do this.
The Doctor replied, well don't do it.
Rob
PS I always have Task Manager running, and keep one eye on CPU usage, and one eye on memory usage. That has been informative for me on occasions. Can't do any harm.