The information in this article applies to:
SYMPTOMSAfter installing Visual C++ version 5.0, you may not be able to attach an active process from Windows NT Task Manager. A message box titled "Unable to Attach Debugger" with the following error message appears:
CAUSEThis happens because the registry entry in HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Windows NT\CurrentVersion\AeDebug has a space in the path to MSDEV.EXE. By default, the installed path to MSDEV.EXE is C:\Program Files\DevStudio\SharedIDE\BIN\. RESOLUTIONThe resolution is to change the entry in the AeDebug registry key to:
The quotation marks around the executable path and name are necessary in order to
correct this problem.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ version 6.0 for Windows. MORE INFORMATION
The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\
CurrentVersion\AeDebug is used to attach the Visual C++ debugger to an
active process by launching MSDEV.EXE. It is also used by Just-In-Time
(JIT) debugging for the same purpose.
where <drive> is the drive letter where Visual C++ is installed.
JIT debugging works fine with the value above. The following are two ways you can attach an active process to the Visual C++ debugger:
The first method works without having to incorporate the fix described in this article because Visual C++ is already running. Steps to Reproduce Behavior
WARNING: Toggling the Just-in-time debugging check box in the Developer Studio Options, Debug Menu tab rewrites the AeDebug registry key back to its original value.
Keywords : kbtool kbDebug kbide kbVC500bug kbVC600fix |
Last Reviewed: August 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |