Microsoft KB Archive/811191

= BUG: You receive an &quot;Unhandled Win32 exception&quot; error message you use the Just-In-Time (JIT) debugger =

Article ID: 811191

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Academic Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect

-



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you use the Just-In-Time (JIT) debugger, you may experience the following symptoms:  You receive the following error message:

&quot;Just -In-Time Debugging Handler and CLR Remote Host: An exception 'unhandled win32 exception' has occurred in process 'processID'. However, Visual Studio 7 just-in-time debugging has failed. Would you like to try debugging with the previously registered debugger (msdev path/msdev.exe)?&quot;

 You receive an error message and the JIT Debugger does not start.



CAUSE
This problem is because the absolute path of the shell resides in the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\shell with a value c:\windows\explorer.exe or c:\winnt\explorer.exe.



RESOLUTION
To resolve this problem, modify the value of the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\shell with a value explorer.exe.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Behavior
 Verify that the Registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\shell value is eitherc:\windows\explorer.exe or c:\winnt\explorer.exe. Right-click Taskbar, and then click Task Manager.</li> In the Task Manager window, click the Processes tab.</li> Select Image Name from the list that you want to debug. For example, if you want to debug on a notepad, select Notepad.exe from the list.</li> Right-click the image that you selected, and then click Debug. You may receive the following warning message:

&quot;WARNING: Debugging this process may result in loss of data. Are you sure you wish to attach the debugger?&quot;

</li> Click Yes. The error message that is mentioned in the &quot;Symptoms&quot; section of this article is displayed.</li></ol>

<div class="resolution_section">

To resolve this problem, follow these steps:
 * Change the registry key value to explorer.exe, and then repeat steps 4, 5, and 6 from the &quot;Steps to Reproduce the Behavior&quot; section earlier in this article. Verify that JIT Debugger starts.
 * You can also start JIT Debugger from a Microsoft Visual Studio command-prompt window. To do this:
 * Locate the Vs7jit.exe file in the C:\Program Files\Common Files\Microsoft Shared\VS7Debug folder.
 * At the command prompt, type vs7jit -p, and then press ENTER to start the debugger.

Keywords: kberrmsg kbbug kbjit kbide kbdevstudio kbpending kbvs2002sp1sweep KB811191

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.