I have a problem with my microsoft visual basic 6 ide, as it's giving me "Visual basic has stopped working" error, from the very start when trying to open my vb project. It is not a code related problem as the same error pumps out when trying to open a perfectly good older working project. Also, trying to open the ide, in order to create a new fresh project, that it lets me.
The problem appeared, when, while debugging project code, I stopped it (closed the ide) without pressing the stop debugging button.So I am not shure but the problem might be from the fact that I suddenly closed the ide, without saving any changes I made(?). After that, when I tried open the project again, it gives me that error. I restarted, but the error persists.
I researched, the closer i found is here :
https://social.msdn.microsoft.com/Forums/vstudio/en-US/359453bd-c8b3-41a7-a668-2c3755dcacef/visual-basic-has-stopped-workingvb60?forum=vbgeneral
But still no solution. How can I restore my project?It was working just fine until the incident.
I mention that OS is Windows 7.
Thank you.
Something to try, in case it's crashing trying to execute some code in your project on startup. This could happen in things like user controls if there's code that executed when it's rendered at design time.
- Open VB6
- Create a new Standard EXE
- Click Tools|Options
- Click the General tab
- Select Break on All Errors
- Click OK
- Close VB6, without saving the new project that was created, then try opening it with your project
You can't get into the options without a project loaded so that's why you need to create a new one. The option is global so it will still be set when you open your project.
If there's an error in your code that's causing the error then this should allow the IDE to break on the error so you can see where it is.
You could also try deleting the .vbw file before opening your project, just in case it's corrupt.
I had the same problem and by accident and playing around I solved it by opening Tools>> Options>> General and then I unchecked Background Compile.
Sometimes temporary files are the cause of malfunction in various apps, one of the first things I do is delete all of them from the windows temp folder and from the current user temp folder; it is also a good idea to have a look at the registry and do a standard cleanup.
Better yet, after these empty the recycle bin and do a defrag.