[RESOLVED] VB6 IDE Crashes
Whenever I Run from within the IDE, I get an error and VB6 closes. I can compile successfully. The compiled programs run successfully. I've uninstalled VB6, uninstalled MS updates, but nothing so far has helped. Throwing this out there before I reformat and start from scratch.
Windows 7 Pro x64
VB6 Professional with SP6
Event ID: 1000
Source: Application Error
Level: Error
Keywords: Classic
Task Category: (100)
Faulting application name: vb6.exe, version: 6.0.97.82, time stamp: 0x403acf6c
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x003b3534
Faulting process id: 0x1c28
Faulting application start time: 0x01d182bab843395b
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\VB98\vb6.exe
Faulting module path: unknown
Report Id: 7b60a5ac-eeaf-11e5-b3f3-18037319c2c6
Re: [RESOLVED] VB6 IDE Crashes
1 Attachment(s)
Re: [RESOLVED] VB6 IDE Crashes
Something seems very wrong, because disabling DEP is never a reasonable thing to do. People use VB6 all day long with DEP enabled and never have a problem.
This is because VB6 has a DEP exception, granted via a stock appcompat shim preinstalled with Windows:
Globally disabling DEP is not a good idea. Once more it sounds like this Windows install has been trashed and reinstalling from scratch is the best bet.
Re: [RESOLVED] VB6 IDE Crashes
It is possible to create add-in with SetProcessDEPPolicy and run it at startup.
Re: [RESOLVED] VB6 IDE Crashes
Quote:
Originally Posted by
dilettante
Something seems very wrong, because disabling DEP is never a reasonable thing to do. People use VB6 all day long with DEP enabled and never have a problem.
This is because VB6 has a DEP exception, granted via a stock appcompat shim preinstalled with Windows:
Globally disabling DEP is not a good idea. Once more it sounds like this Windows install has been trashed and reinstalling from scratch is the best bet.
Completely agree. I'm currently trying to figure out what caused this to happen, and how to fix it. I've only noticed an issue with VB6, not other applications. The only thing that comes to mind is an installation of WebRoot security that caused us a good bit of grief last year. It's possible that it altered settings but I cannot be sure. I'll post when / if I find out what happened.
Re: [RESOLVED] VB6 IDE Crashes
I was able to enable DEP with status OptOut, create a vb6.exe exception, and all is working fine. Granted, something is still off because as dilettante stated, plenty of users run VB6 without this issue. I'll continue to investigate what the root cause is and will update if and when found. But thanks to everyone again for the assistance.
Re: [RESOLVED] VB6 IDE Crashes
My thanks also to everyone.
I had the exact same symptom as Greg0145 (with VB6 6.0.97.82 on 64-bit Windows 7).
I ran into this problem after having installed Microsoft's "EMET" security tool, with the option DEP set to "Always On". However, the cause-and-effect wasn't immediately obvious to me because in the lapse of many weeks before I ran VB6 on this machine, my system had been modified or updated by a number of other, more likely "suspects".
Your helpful thread enabled me to get VB6 working again. So many thanks!
It may help others if I detail here the 2 steps that are needed:
1. Set DEP (Data Execution Prevention) to OptOut by default.
To do that in EMET, you just choose "Application Opt Out".
If you're not running EMET, run CMD.EXE as administrator and use the "bcdedit" command-line tool to change the "boot configuration" as follows: bcdedit.exe /set {current} nx OptOut
In either case (EMET or bcdedit), a reboot is needed before step 2.
2. Define VB6.EXE as an exceptional opt-out.
You can do that in Windows' "Data Execution Prevention" settings dialogue, which you can reach either via Control Panel or via Computer.Properties, by choosing: Advanced System Settings - Performance Options - Data Execution Prevention.
By the way, this was not an EMET problem, as such. I still recommend running EMET to reinforce Windows security :-)
Re: [RESOLVED] VB6 IDE Crashes
I am making and testing modifications to one of my applications within VB6. All too often after I have used some features in a subform and then close it, VB6 crashes.
I am running VB6.exe in a WinXP virtual PC (dedicated to VB6)(VMWare) on my Win7x64 host PC.
Re: [RESOLVED] VB6 IDE Crashes
If you have this problem on WINDOWS 11, WIN11, maybe even Windows 10, Win10
goto
https://www.vbforums.com/showthread....ling-*any*-API
Cheers