EClrFailure Enumeration

Describes the set of failures for which a host can set policy actions.

typedef enum {
    FAIL_NonCriticalResource,
    FAIL_CriticalResource,
    FAIL_FatalRuntime,
    FAIL_OrphanedLock
    FAIL_StackOverflow
    FAIL_AccessViolation
    FAIL_CodeContract
} EClrFailure;

Member

Description

FAIL_NonCriticalResource

A failure occurred during an attempt to allocate a resource (such as a thread, a block of memory, or a lock) in a non-critical region of code.

FAIL_CriticalResource

A failure occurred during an attempt to allocate a resource (such as a thread, a block of memory, or a lock) in a critical region of code.

FAIL_FatalRuntime

The common language runtime (CLR) is no longer able to run managed code in the process. Henceforth, calls to any hosting functions return an HRESULT value of HOST_E_CLRNOTAVAILABLE.

FAIL_OrphanedLock

A thread has failed to release a lock upon returning from an AppDomain object. The host cannot set this failure to cause a thread to abort.

FAIL_StackOverflow

A stack overflow has occurred.

FAIL_AccessViolation

An attempt was made to read or write protected memory. Not supported in the .NET Framework version 4.

FAIL_CodeContract

A code contract failure occurred. See Code Contracts.

See the ICLRPolicyManager::SetActionOnFailure method for a list of EPolicyAction values the host can use to specify the policy actions for failure conditions. For more information about critical and non-critical regions of code, see EClrOperation.

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.h

Library: MSCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft