CMemoryException Class
Represents an out-of-memory exception condition.
Syntax
class CMemoryException : public CSimpleException
Members
Public Constructors
Name | Description |
---|---|
CMemoryException::CMemoryException | Constructs a CMemoryException object. |
Remarks
No further qualification is necessary or possible. Memory exceptions are thrown automatically by new
. If you write your own memory functions, using malloc
, for example, then you are responsible for throwing memory exceptions.
For more information on CMemoryException
, see the article Exception Handling (MFC).
Inheritance Hierarchy
CMemoryException
Requirements
Header: afx.h
CMemoryException::CMemoryException
Constructs a CMemoryException
object.
CMemoryException();
Remarks
Do not use this constructor directly, but rather call the global function AfxThrowMemoryException. this global function can succeed in an out-of-memory situation because it constructs the exception object in previously allocated memory. for more information about exception processing, see the article exceptions.
See also
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru