The HEAPSIZE Statement

The HEAPSIZE statement defines the size of the application or DLL's local heap in bytes. This value affects the size of the default data segment (DGROUP). The default without HEAPSIZE is no local heap.

Summary: Syntax

HEAPSIZE {bytes|MAXVAL}

Summary: Remarks

The bytes field accepts a positive integer in decimal or C-language notation. The limit is MAXVAL; if bytes exceeds MAXVAL, the excess is not allocated.

MAXVAL sets the heap size to 64K minus the size of DGROUP.

Summary: Example

The following example sets the local heap to 4,000 bytes:

HEAPSIZE 4000