rejetto forum
Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: Mars on May 15, 2009, 11:46:02 PM
-
if showMemUsageChk.checked then
addPanel('Mem: '+dotted(getHeapStatus().TotalAllocated ));
[Pascal Avertissement] main.pas(9232): W1000 Symbole 'GetHeapStatus' désapprouvé
found this information:
It is recommended to use GlobalMemoryStatus from the Windows unit instead of GetHeapStatus. However, in systems with more than 2 GB memory, GlobalMemoryStatus returns erroneous results. Therefore, a newer Windows API function should be used: GlobalMemoryStatusEx
-
thank you mars.
sadly, after i worked to get GlobalMemoryStatusEx working, i noticed there's no equivalent to TotalAllocated.
-.-
i will have a look at GetMemoryManagerState when i have time