ICorDebugChain::GetActiveFrame Method

Gets the active (that is, most recent) frame on the chain.

Syntax

HRESULT GetActiveFrame (
    [out] ICorDebugFrame   **ppFrame
);

Parameters

ppFrame [out] A pointer to the address of an ICorDebugFrame object that represents the active (that is, most recent) frame on the chain.

Remarks

If no managed stack frame is available, ppFrame is set to null.

If the active frame is not available, the call will succeed and ppFrame will be null. Active frames will not be available for chains initiated due to CHAIN_ENTER_UNMANAGED, and for some chains initiated due to CHAIN_CLASS_INIT. See the CorDebugChainReason enumeration.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 1.0