Event: Out of memory.
void OnOutOfMemory();
Parameters
None.
Returning Parameter
None.
HRESULT Return Values
None.
Description
The OnOutOfMemory event is executed when memory allocation fails. Clients should print the error message, then exit immediately. This is a catastrophic error from which clients cannot recover.