[Implemented] MemoryInfo() to calculate the allocated memory
Posted: Tue Feb 15, 2005 8:03 am
Implemented as MemoryStatus()
I wish a function to calculate the total memory size of all allocated memory blocks in my programm (see the example). Thanks!
Code: Select all
x = 256 * 256
*a1 = AllocateMemory(16000)
*a2 = AllocateMemory(555)
*a3 = AllocateMemory(x)
Debug MemoryInfo() ; = 82091
FreeMemory(*a1)
Debug MemoryInfo() ; = 66091