I have a legacy VB6 solution with a lot of projects. I am getting the error described here only when building the project.
The error is displayed inside a dialog box with the caption "Visual Studio Just-In-Time Debugger"
I have often got the error before, particularly in the IDE if I move a control on a form that has lots of controls. Usually the error does not repeat consistently.
However the error is now consistently repeating and preventing me from building. I have rebooted.
My next step will be to start trying to uninstall other things from my machine. I particularly suspect dot net framework 4 which might have installed yesterday.
The OS is Windows XP Professional Version 2002 SP3
Any ideas would be greatly appreciated.
Update: uninstalling framework 4 made no difference. I opened the solution and pressed F5 to run it, and got the error. I opened a form in design mode, then pressed F5 to run and was able to run OK. I also was able to compile the solution, and then to my relief - to build it.
The trick seems to be to have a form open before I build.