Monitoring Memory usage
Posted: Fri Oct 29, 2010 12:53 pm
Hi,
I want to monitor the amount of memory available to my program as I setup arrays etc.
I am using functions in Droopys lib and doing a simple test like the following
When I run this code the Totals don't change as expected, but either do the Avail after declaring the array.
I must be misunderstanding the way memory works or is allocated OR the functions don't work the way I would expect them to. Can someone explain ?
Thanks Singo
XP SP3, PB 4.51
I want to monitor the amount of memory available to my program as I setup arrays etc.
I am using functions in Droopys lib and doing a simple test like the following
Code: Select all
Procedure mem()
Debug GlobalMemoryStatusTotalPhys()
Debug GlobalMemoryStatusTotalVirtual()
Debug GlobalMemoryStatusAvailPhys()
Debug GlobalMemoryStatusAvailVirtual()
Debug "============"
EndProcedure
mem()
Dim f.s(20000)
mem()
I must be misunderstanding the way memory works or is allocated OR the functions don't work the way I would expect them to. Can someone explain ?
Thanks Singo
XP SP3, PB 4.51