Skip to content

Latest commit

 

History

History
68 lines (54 loc) · 2.72 KB

eclrfailure-enumeration.md

File metadata and controls

68 lines (54 loc) · 2.72 KB
description title ms.date api_name api_location api_type f1_keywords helpviewer_keywords ms.assetid topic_type
Learn more about: EClrFailure Enumeration
EClrFailure Enumeration
03/30/2017
EClrFailure
mscoree.dll
COM
EClrFailure
EClrFailure enumeration [.NET Framework hosting]
37b95cce-9bfb-4ecf-a00b-33dcba782c67
apiref

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 xref:System.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: [!INCLUDEnet_current_v20plus]

See also