RAD Studio VCL Reference
EOutOfMemory Class

EOutOfMemory is the exception class for unsuccessful attempts to allocate memory.

EOutOfMemory = class(EHeapException);
class EOutOfMemory : public EHeapException;

EOutOfMemory occurs when an application attempts to allocate dynamic memory, but there is not enough free memory in the system to meet the request. 

Memory for the EOutOfMemory exception is pre-allocated whenever an application starts and remains allocated as long as the application is running.

Note: Never raise EOutOfMemory directly. Instead, call the global OutOfMemoryError procedure.


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!