community.borland.com

Article #16257: Turbo Pascal for Windows New and GetMem procedures

 Technical Notes Database

TN1257D.txt   Turbo Pascal for Windows New and GetMem procedures
Category   :Pascal
Platform    :All
Product    :Turbo Pascal  1.0

Description:
The way memory allocation works for new and getmem is as follows:

There are two system variables:  HeapBlock and HeapLimit.

When memory is allocated for a size less than HeapBlock (Default is 1k) 
then the memory will be suballocated in a block of size HeapBlock 
(default is 8k). 
Allocation of blocks larger than HeapLimit will have there own block.  All
allocations will be in global memory.

You will not be able to change the way this works.




Reference:


7/16/98 4:35:43 PM
 

Last Modified: 01-SEP-99