我正在运行 Visual Studio 2008 SP1。在获取任何文件的版本树时,Visual Studio 崩溃并退出。怎么办?
透明 shell 7.1 版
操作系统:Windows 7 (x86)
最佳答案
此 technote提到 DEP(数据执行保护)是这些崩溃的可能原因。
This only happens on Windows 2008 Server, Windows Vista and Windows 7 systems.
Cause
This is due to DEP (Data Execution Prevention), which is enabled by default for all applications.
Defect, APAR PK64886, has been opened to investigate this issue.WORKAROUND:
DEP can be disabled for certain applications by running
bcdedit.exe
In order to avoid this crash from happening the user needs to do the following
- 1/ Login as Administrator 2/ Open a command prompt and run the following command.
bcdedit.exe/set nx Optout
- 3/ Restart the system
- 4/ Navigate to the Visual Studio install directory, which is typically found in the following locations:
- VS.NET 2008:
C:\Program Files\Microsoft Visual Studio 9.0
- VS.NET 2010:
C:\Program Files\Microsoft Visual Studio 10.0
Note: On Windows 64-bit platforms the above pathnames start with:
C:\Program Files (x86)\
Then cd to the dir "VC\bin
" (for example,C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
).
- 5/ Run the following 2 commands
cmd提示符> vcvars32.bat
cmd 提示符> link/edit/nxcompat:NO "\Common7\IDE\devenv.exe"
This should resolve DEP-related crashes in Visual Studio with the ClearCase integration going forward.
Note:To restore DEP to the Windows default, use the following command:
bcdedit.exe /set nx OptIn
关于visual-studio-2008 - Visual Studio 在从 Clearcase 获取版本树时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5510364/