Compartilhar via


Handling an Exception (Windows CE 5.0)

Send Feedback

You can designate an exception for the OS to treat as handled.

To handle an exception

  1. Examine the output on the Debug tab of the Output window.

    The output in the Output window indicates where the exception occurred.

  2. From the Debug menu, choose Go Handled to let the kernel debugger handle the exception.

    The kernel debugger executes the instruction that caused the exception again.

  3. Choose from the following:

    • If the kernel debugger cannot handle the exception, choose Go Not Handled from the Debug menu to direct the kernel debugger to find a handler to process the exception.

    • If an exception occurs, and choosing Go Not Handled does not cause the system to resume, choose Go.

      If the OS cannot find a handler, it tries to handle the exception. Go Not Handled terminates the process that owns the thread from which the exception is generated.

  4. From the View menu, choose Debug Windows and then choose Call Stack.

  5. Double-click any line to display the source code corresponding to that frame.

  6. From the View menu, choose Debug Windows and then choose Variables to view transient parts of the code, such as local variables.

See Also

Viewing or Modifying the List of Exceptions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.