RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
EOutOfMemory Class

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

Pascal
EOutOfMemory = class(EHeapException);
C++
class EOutOfMemory : public EHeapException;

SysUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!