RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
EHeapException Class

EHeapException is the exception class for errors related to heap-allocated memory.

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

EHeapException's descendants—EOutOfMemory and EInvalidPointer—are used to handle failed allocations of dynamic memory and invalid pointer operations.

Note: Memory for these exceptions is pre-allocated whenever an application starts and remains allocated as long as the application is running. Never raise EHeapException or its descendants directly.
 

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