rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: Mars on May 15, 2009, 11:46:02 PM

Title: about getHeapStatus() message in delphi
Post by: Mars on May 15, 2009, 11:46:02 PM
Quote
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  
Title: Re: about getHeapStatus() message in delphi
Post by: rejetto on May 17, 2009, 09:11:19 PM
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