community.borland.com

Article #15870: GETINFO - FREE MEMORY IN DOS

 Technical Notes Database

TN870D.txt   GETINFO - FREE MEMORY IN DOS
Category   :Pascal
Platform    :All
Product    :Turbo Pascal  4.0+

Description:
Q. How come the GetInfo menu shows that the amount of free memory
  is zero but MemAvail and MaxAvail indicate free memory?
A. The menu refers to the memory recognized by DOS, whereas
  MemAvail and MaxAvail refer to the free memory internal to your
  program.  When a program loads it may take away all of the available
  memory from DOS.  This memory would be used inside your program
  for the heap, overlays, and the stack, for example.


Reference:


7/16/98 4:35:36 PM
 

Last Modified: 01-SEP-99