RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.GetMemoryMap Function

Fetches the memory map.

Pascal
procedure GetMemoryMap(var AMemoryMap: TMemoryMap);
C++
GetMemoryMap(TMemoryMap AMemoryMap);

GetMemoryMap returns a map of the address space of the process. For the purposes of the map, the entire 4GB address space is broken down into 64K chunks. There are 65536 such chunks. GetMemoryMap obtains a status value for each of them in the TMemoryMap array. The sum of the number of blocks with the status of csUnallocated multiplied by the chunk size (64K) gives an indication of how much more memory the application can allocate before it will run out of address space.

Status Value 
Description 
csUnallocated 
Free 
csAllocated 
In use by the process 
csReserved 
Reserved for future use by the process 
csSysAllocated 
In use by the operating system 
csSysReserved 
Reserved for future use by the operating system 

 

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