EClrFailure Enumeration
Describes the set of failures for which a host can set policy actions.
Syntax
typedef enum {
FAIL_NonCriticalResource,
FAIL_CriticalResource,
FAIL_FatalRuntime,
FAIL_OrphanedLock
FAIL_StackOverflow
FAIL_AccessViolation
FAIL_CodeContract
} EClrFailure;
Members
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 4. |
FAIL_CodeContract |
A code contract failure occurred. See Code Contracts. |
Remarks
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.
Requirements
Platforms: See System Requirements.
Header: MSCorEE.h
Library: MSCorEE.dll
.NET Framework Versions: Available since 2.0
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.