brando
brando

Reputation: 8431

Diagnosing Visual Studio 2015 repeated crashing/restarting

I am using VS 2015 and I have one project that habitually crashes/restarts about ever 10 minutes. It doesn't happen with all my projects, it just seems to be one offending project. What is the best way to analyze what is causing the crash?

Upvotes: 18

Views: 27945

Answers (4)

Mehdi Souregi
Mehdi Souregi

Reputation: 3265

You can simply try : devenv.exe /resetuserdata instead of reinstalling the whole program, it worked for my case.

Upvotes: 4

sunanda
sunanda

Reputation: 101

After so many researches on google, i finally solved the same restart issue in my VS2015. The solution is that place the project soultion inside "C:\Users\Documents\Visual Studio 2015\Projects". The project should not open in local.

Upvotes: 0

Geoffrey Fernandez
Geoffrey Fernandez

Reputation: 138

I had the same problem. I tried a whole bunch of stuff I saw online and only got frustration for a result. When I looked into the logs I discovered every time it crashed it threw a "Path too long" exception. I didn't, and still don't, know how or why that was happening, but the two were definitely correlated. In desperation I decided to try moving my code from the "H" (network) drive to the local ("C") drive. The problem went away. For what it's worth I thought I should post this. Hopefully this helps someone else!

Upvotes: 5

paulsm4
paulsm4

Reputation: 121649

I have a many MSVS compilers around ... but MSVS 2015 isn't one of them.

HOWEVER:

I think one or both of the following might help:

  1. Start MSVS, Open your project, and go into Tools > Options >

    • Environment > Auto-recover: turn OFF (for troubleshooting)
    • Projects and Solutions: disable anything that looks "suspicious"
  2. Try starting MSVS with the /log parameter.

    Look here for more details: Debugging a Visual Studio Crash

Upvotes: 12

Related Questions