CMemoryException();
Constructs a CMemoryException object. 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.
Chapter 5, “Exception Processing,” AfxThrowMemoryException