Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How to debug Visual Studio Crashing

How to debug Visual Studio Crashing

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpvisual-studiodebugginghelptutorial
12 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Clark Kent123

    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.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #3

    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

    C 1 Reply Last reply
    0
    • C Clark Kent123

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #4

      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.

      C 1 Reply Last reply
      0
      • L Lost User

        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.

        C Offline
        C Offline
        Clark Kent123
        wrote on last edited by
        #5

        Thanks for the feedback. This thought has indeed entered my mind. I may do this if nothing else works.

        L 1 Reply Last reply
        0
        • C Clark Kent123

          Thanks for the feedback. This thought has indeed entered my mind. I may do this if nothing else works.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #6

          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.

          C 1 Reply Last reply
          0
          • L Lost User

            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

            C Offline
            C Offline
            Clark Kent123
            wrote on last edited by
            #7

            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.

            1 Reply Last reply
            0
            • L Lost User

              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.

              C Offline
              C Offline
              Clark Kent123
              wrote on last edited by
              #8

              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?

              L 2 Replies Last reply
              0
              • B Big Daddy Farang

                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. :) 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

                C Offline
                C Offline
                Clark Kent123
                wrote on last edited by
                #9

                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!

                1 Reply Last reply
                0
                • C Clark Kent123

                  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?

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #10

                  Try Microsoft Connect[^].

                  Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

                  1 Reply Last reply
                  0
                  • C Clark Kent123

                    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?

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #11

                    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.

                    1 Reply Last reply
                    0
                    • B Big Daddy Farang

                      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. :) 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

                      A Offline
                      A Offline
                      Anand Deshmukh
                      wrote on last edited by
                      #12

                      Could you Pls explain,what actually the problem being faced? Regards, Anand Deshmukh

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups