views:

42

answers:

2

Visual Studio 2010 crashes on exit a lot for me. Often it decides to auto-restart, and if I miss the short time out to hit the cancel box it loads again.

Is there a registry key to disable this auto restart feature?

A: 

The obvious thing would be to prevent VS2010 from crashing. Identify the reason for that and work towards preventing it from crashing. Then you wont need the work around.

ckv
If I had time, I'd be happy to debug Microsoft's problem for them. But crashing on exit does not affect my productivity. The auto restart does.
Scott Bilas
Ahhh the classic "I don't need to include this option cos my program will never crash" syndrome. Yet they must have realised it might crash cos they included an autorestart... so... moot point. Did you have a hand in coding it ckv?
Hehe no man. Just putting across my thoughts.
ckv
+1  A: 

I don't know if there is a way to unregister an application specifically from (Windows's) Application Restart feature. You can try making error reporting ask you before checking for solutions, or just exclude devenv.exe from the error reporting. On Win7, you can find these options in the Control Panel, under System and Security -> Action Center -> Problem Reporting Settings.

Note that if you do exclude VS and don't send the Watson reports back, nobody on the VS team will ever see them and have a chance to fix them. We do investigate these reports regularly, so it's always helpful to send it in if you can.

Noah Richards
Agreed - I don't want to disable error reporting, for the reasons you state. I'll try the "ask" option instead.
Scott Bilas
Changing the option to "Ask" does prevent the auto restart. However, I now get a dialog that has three choices: Check online for a solution and restart the program, Close the program, and Debug the program. I assume that if I don't pick the first one then the watson report won't get submitted. :/
Scott Bilas
I think you are probably right; I think they combine the idea of reporting the issue and checking for a solution. Hopefully someone else can give you a better answer than mine :(
Noah Richards