PRB: Exception Code 0xE06D7363 When Calling Win32 SEH APIs

ID: Q185294


The information in this article applies to:
  • Microsoft Visual C++, 32-bit Editions, version 5.0
  • Microsoft Win32 Application Programming Interface (API), used with:
    • Microsoft Windows 95
    • Microsoft Windows NT 4.0
    • Microsoft Windows 2000


SYMPTOMS

When you call Win32 Structured Exception Handling (SEH) APIs, such as GetExceptionCode() and GetExceptionInformation(), sometimes the system reports the following exception code:

0xE06D7363
Sometimes GetLastError() also returns this value. You receive this error code when a program compiled with the Microsoft Visual C++ compiler throws an exception using Visual C++ exception handling.


CAUSE

All Visual C++ exceptions thrown from code generated by the Microsoft Visual C++ compiler contain this error code. Because this is a compiler- generated error, the code is not listed in the Win32 API header files. The code is actually a pneumonic device, with the initial "E" standing for "exception" and the final 3 bytes (0x6D7363) representing the ASCII values of "msc".


RESOLUTION

To properly handle the error, you need to wrap the offending code in a try...catch block. This allows the developer to identify the actual Visual C++ exception that was thrown.

While debugging an application with Microsoft Visual Studio, you can halt the program immediately when this exception occurs, before any handler code is invoked. This gives you a chance to view the offending statement and fix the exception yourself by modifying the variable contents, thereby avoiding an unwind. To set how the debugger handles this exception, follow these steps:

  1. Start debugging your application.


  2. From the Debug menu, click Exceptions.


  3. Within the Exceptions dialog box, select error 0xE06D7363.


  4. Change the value of Action from Stop if not handled to Stop always.



STATUS

This behavior is by design.


REFERENCES

Visual C++ Books Online: Exception Handling; Debugging Exceptions

Additional query words: E06D7363

Keywords : kbAPI kbKernBase kbNTOS400 kbWinOS2000 kbExceptHandSEH kbVC500 kbWinOS95
Version : winnt:4.0,5.0
Platform : winnt
Issue type : kbprb


Last Reviewed: January 10, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.