PRB: Developer Studio Hangs When Debug Breakpoint Is SetLast reviewed: March 3, 1998Article ID: Q177436 |
The information in this article applies to:
- Microsoft Visual C++, 32-bit Editions, version 5.0
SYMPTOMSThe Visual C++ debugger causes Microsoft Developer Studio to hang when a breakpoint is set in the code, or nothing happens when you try to start debugging with Debug Go (F5). It may also cause an application error in Msdev.exe. Also, The Visual C++ debugger might not run inside Microsoft Developer Studio, but it might run fine outside Microsoft Developer Studio.
CAUSEIf the software license checking program Express Meter is installed in the machine then it hooks a DLL named Em.dll in the process space of Msdev.exe. The Visual C++ debugger also uses a DLL by the same name. As a result, when the debugger is invoked in Microsoft Developer Studio it uses the wrong Em.dll found in its process space and the access violation occurs.
RESOLUTIONThe Express Meter software is available in both 16-bit and 32-bit versions. When you are running this software, the 16-bit version appears in the Task Manager as EM (for Em.exe) and the 32-bit version appears as EM32 (for Em32.exe). Express Meter software installs the Em.dll in the Windows ..\System or ..\System32 directory. The Visual C++ debugger installs this DLL in the C:\Program files\DevStudio\SharedIDE\BIN\ directory if you installed Visual C++ in the C: drive. To resolve this problem, check the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\DevStudio\5.0\Build System \Components\Platforms\Win32 (x86)\Execution ModelsOn the right panel you will see an entry "Current EM", and its value is set to "EM". Change this value to the full path of the debugger's Em.dll for LoadLibrary to load the correct DLL. The changed value will be similar to the following directory (depending on which drive Visual C++ is installed on):
C:\Program files\DevStudio\SharedIDE\BIN\EMTo change the value, double-click "Current EM", and type in the full path that appears above. If this does not resolve the issue, end the task (EM or EM32) from the Task Manager. Note that if the System Administrator is running this task in a secured mode, you need appropriate permissions to end this task.
STATUSThis behavior is by design. Keywords : VWBIss Version : WINDOWS:97 Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |