visual-studio-2008 - Visual Studio 在从 Clearcase 获取版本树时崩溃

标签 visual-studio-2008 windows-7 clearcase

我正在运行 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/

相关文章:

continuous-integration - 与 ClearCase 和长期更新的快照 View 持续集成

c++ - CSimpleString 中的遗留 MFC 跨线程异常

c++ - 编辑 rc 文件,然后在 VC 对话框向导中打开它时,由于 TBS_NOTIFYBEFOREMOVE,出现错误 RC2104

clearcase - 使用 WinMerge 作为 XML 文件的 ClearCase 差异查看器

version-control - 如何在clearcase中获取以前的版本?

windows-7 - Windows 7上的VB6应用程序无法访问映射的驱动器

c# - 应如何配置 windbg 以对 Microsoft 报告进行故障排除(在 Visual Studio 2008 中创建)

c++ - 让我的图标出现在 VS 2008 中的问题

c# - VS2010 从 VS2008 升级时失去断点命中

r - 如果在 R 中模拟后使用鼠标滚轮,Windows 7 将变得无响应