Represents the exception that is thrown when there is not enough memory to continue the execution of a program.
Object
Exception
SystemException
OutOfMemoryException
[Visual Basic] Public Class OutOfMemoryException Inherits SystemException [C#] public class OutOfMemoryException : SystemException [C++] public __gc class OutOfMemoryException : public SystemException [JScript] public class OutOfMemoryException extends SystemException
The OutOfMemoryException is the exception class that is thrown when there is not enough memory to continue operation of the program. Out of memory errors occur when the program cannot handle the memory demands to the program and result in the program's termination.
Namespace: System
Assembly: mscorlib.dll