Click here to Skip to main content
       

.NET Framework

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionHow to debug Visual Studio CrashingmemberClark Kent12322 Aug '12 - 9:13 
Hello,
 
This is now starting to get out of hand. Every time I have to build my project Visual Studio 10 crashes on me without telling me why. I have tried starting Visual Studio with writing a log file in the command prompt. And starting Visual Studio in SafeMode in the command prompt.
 
The log file does not show that anything went wrong and Safemode didn't help because I got the same results: crash.
 
My suspicion is that one of my many references (dlls) might be corrupt or faulty. Should I remove them all and load them back in?
 
Can anyone offer some suggestions or links on how to debug why Visual Studio crashes during a build? Any help would be greatly appreciated.
AnswerRe: How to debug Visual Studio Crashing PinmemberBig Daddy Farang22 Aug '12 - 9:56 
That sounds like a tough one. Because you say, "crashes during a build" I'm assuming that you can open VS and your solution without problem. When you start the build, the problem occurs. If that's correct, I'd try watching very carefully the output window to get clues about how far the build progresses before the crash. You've probably already done that, leading to your suspicion that a dll might be the problem.
 
Another thing I would try is this. Delete all output files produced by a build. (Does Build / Clean still work?) Close VS and make sure everything was cleaned, or perform the task manually. Next I'd delete the .suo file. This is a hidden file in the same directory as your .sln file.
 
If that doesn't help, I'd hope for more suggestions from other people here. Smile | :)
 
Good luck!
BDF
 
I often make very large prints from unexposed film, and every one of them turns out to be a picture of myself as I once dreamed I would be.
-- BillWoodruff

GeneralRe: How to debug Visual Studio Crashing PinmemberClark Kent12323 Aug '12 - 1:57 
Quote:
Another thing I would try is this. Delete all output files produced by a build. (Does Build / Clean still work?) Close VS and make sure everything was cleaned, or perform the task manually. Next I'd delete the .suo file. This is a hidden file in the same directory as your .sln file.

I have tried deleting some of the files, but I have not tried the .suo file. Also, I am going to retry clean and a project clean. Not sure if there is difference between the two, but at this point I will try anything to get this working.
 
Thanks for the feedback!
GeneralRe: How to debug Visual Studio Crashing PinmemberAnand Deshmukh23 Aug '12 - 3:01 
Could you Pls explain,what actually the problem being faced?
 

Regards,
Anand Deshmukh
AnswerRe: How to debug Visual Studio Crashing PinmemberWes Aday22 Aug '12 - 11:26 
Did you check your event log?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

GeneralRe: How to debug Visual Studio Crashing PinmemberClark Kent12323 Aug '12 - 1:52 
I have not looked into the event log, but only used the Visual Studio logging method. As I mentioned before the VS log got me no where. I will try the event log this time and hope it proves more informative. Thanks for the advice.
AnswerRe: How to debug Visual Studio Crashing PinmvpRichard MacCutchan22 Aug '12 - 21:13 
You could try a re-install of VS, which may resolve it. I don't know of any published methods of debugging, but if you report the problem to Microsoft they may have some suggestions.
One of these days I'm going to think of a really clever signature.

GeneralRe: How to debug Visual Studio Crashing PinmemberClark Kent12323 Aug '12 - 1:48 
Thanks for the feedback. This thought has indeed entered my mind. I may do this if nothing else works.
GeneralRe: How to debug Visual Studio Crashing PinmvpRichard MacCutchan23 Aug '12 - 1:51 
I know Microsoft get a bad press sometimes, but I had a Visual Studio problem a couple of years ago and found the response from them to be very good.
One of these days I'm going to think of a really clever signature.

GeneralRe: How to debug Visual Studio Crashing PinmemberClark Kent12323 Aug '12 - 1:55 
I will sure will try that. This may be a silly question, but can you link me to where I can inform MS of my frustration? Not sure if I should post it at their forums or is there a separate place that handles these type of issues?
GeneralRe: How to debug Visual Studio Crashing PinmemberEddy Vluggen23 Aug '12 - 2:06 
Try Microsoft Connect[^].
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

GeneralRe: How to debug Visual Studio Crashing PinmvpRichard MacCutchan23 Aug '12 - 2:49 
Mine was specific to C++, but if you start here[^] you may be able to find a useful link, or at least, someone in Microsoft who can help.
One of these days I'm going to think of a really clever signature.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid