Visual Studio 2010 crashes repeatedly

前端 未结 14 1714
迷失自我
迷失自我 2021-01-31 17:35

I\'ve been running Visual Studio 2010 (the official release) for some time now. Lately, VS will crash 10+ times during my 8 hour work day. In VS2008, crashes were common when wo

相关标签:
14条回答
  • 2021-01-31 18:38

    Logging helps indeed. I have the same problem with crashes. Since there could be numerous reasons and lots of log data, I wrote this .bat (Win7 x64, VS2010 Express) to keep logs organized and easy to analyze:

        @echo off
    
        rem date and time in format YYYYMonDD_hhmmss
        set year=%DATE:~-4%
        set month=%DATE:~3,2%
        set day=%DATE:~0,2%
    
        IF %month%==01 set monthstr=Jan
        IF %month%==02 set monthstr=Feb
        IF %month%==03 set monthstr=Mar
        IF %month%==04 set monthstr=Apr
        IF %month%==05 set monthstr=May
        IF %month%==06 set monthstr=Jun
        IF %month%==07 set monthstr=Jul
        IF %month%==08 set monthstr=Aug
        IF %month%==09 set monthstr=Sep
        IF %month%==10 set monthstr=Oct
        IF %month%==11 set monthstr=Nov
        IF %month%==12 set monthstr=Dec
    
        set now=%TIME:~0,-3%
        set now=%now::=%
        set now=%now: =0%
        set now=%year%%monthstr%%day%_%now%
    
        start "VS2010 express" "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe" /Log "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSlogs\VS_log_%now%.txt"
    
    0 讨论(0)
  • 2021-01-31 18:40

    While developing C++ code, Visual Studio 2010 started crashing frequently and at random times after I enabled the Task List.

    As an alternative to using the Task List, I am now simply using the Find in Files tool (Ctrl+Shift+F) and searching for the string TODO as an alternative.

    0 讨论(0)
提交回复
热议问题