1周前Visual Studio 2010突然出現崩潰現象。在源檔案修改只要一編譯,馬上就崩潰,而且還不彈出任何異常視窗,嚴重影響軟體開發工作。
google了無數解決方案
用下面網站上的辦法也不奏效:
1)http://blog.sina.com.cn/s/blog_68cb7e090101963d.html
For 32-bit operating systems, run the following command:
regsvr32 "c:\Program Files\Internet Explorer\ieproxy.dll"
For 64-bit operating systems, run the following command:
regsvr32 "c:\Program Files (x86)\Internet Explorer\ieproxy.dll"
以上命令必須以管理員權限運行。如果還不行就:
regsvr32 c:\Windows\System32\ole32.dll
這些都不行。
他給出了一些參考連結:
http://support.microsoft.com/kb/983279/en-us
http://connect.microsoft.com/VisualStudio/feedback/details/618802/visual-studio-andom-frequent-crash
http://social.msdn.microsoft.com/Forums/zh-SG/vssetup/thread/ac890e5c-2de6-4526-86fb-9a3cd77ec80e
The plugin AnkHSVN is known to cause the same problem:
http://blogs.msdn.com/b/visualstudio/archive/2010/05/11/if-you-are-seeing-intermittent-crashes-with-vs-2010.aspx
以為是SVN和VisualAssistX的問題,卸載後依然不行。
再從Visual Studio 2010裡禁止一些外掛程式,把原始程式碼控制系統更改為“無”,仍不行。
6)又看了這個貼子,原來這個問題已經存在N年了,微軟一直沒有搞定。
http://social.msdn.microsoft.com/Forums/en/msbuild/thread/6f76db9a-ea37-42b3-a016-571912c28032
最後感覺是偵錯工具時有些異常中止時,某個檔案被鎖住,而Visual Studio 2010又不被正常地解鎖這個檔案,而導致崩潰。