Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 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 System Requirements.
Header: MSCorEE.h
Library: MSCorEE.dll
.NET Framework Versions: Available since 2.0
.NET feedback
.NET is an open source project. Select a link to provide feedback: