Share via


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
} EClrFailure;

Members

Member

Description

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_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_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. The appropriate setting is EPolicyAction::eUnloadAppDomain.

Remarks

For more information about critical and non-critical regions of code, see EClrOperation.

Requirements

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

Header: MSCorEE.idl

Library: MSCorEE.dll

.NET Framework Version: 2.0

See Also

Concepts

ICLRPolicyManager Interface

IHostPolicyManager Interface

Hosting Enumerations