This documentation is archived and is not being maintained.

ICorDebugProcess::ClearCurrentException Method

Clears the current unmanaged exception on the given thread.

HRESULT ClearCurrentException([in] DWORD threadID);


Parameter Description


[in] The ID of the thread on which the current unmanaged exception will be cleared.

Call this method before calling ICorDebugController::Continue Method when a thread has reported an unmanaged exception that should be ignored by the debuggee. This will clear both the outstanding in-band (IB) and out-of-band (OOB) events on the given thread. All OOB breakpoints and single-step exceptions are automatically cleared.

Use ICorDebugThread2::InterceptCurrentException Method to intercept the current managed exception on a thread.

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0