System.OutOfMemoryException Class

The exception that is thrown when there is not enough memory to continue the execution of a program.

See Also: OutOfMemoryException Members


public class OutOfMemoryException : SystemException


The following Microsoft intermediate (MSIL) instructions throw OutOfMemoryException :

OutOfMemoryException uses the HRESULT COR_E_OUTOFMEMORY, which has the value 0x8007000E.

For a list of initial property values for an instance of OutOfMemoryException, see the OutOfMemoryException.#ctor constructors.


The value of the inherited Exception.Data property is always null.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.


Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,