dwMemoryLoad from GlobalMemoryStatus is inaccruate

BlitzMax Forums/BlitzMax Programming/dwMemoryLoad from GlobalMemoryStatus is inaccruate

Grey Alien(Posted 2007) [#1]
I was using GlobalMemoryStatus to return a type which contained details about the memory status. On my PC it's fine, but on my son's WinME PC dwMemoryLoad said 55% when clearly it was 93%! So either it's inaccurate on some systems (can't find anything about this on google) or dwAvailPhys is inaccurate (was using this with dwTotalPhys to work out how much was free). OR dwMemoryLoad means something other than what I think it means.

I'm now "manually" working out the load by doing free/total and it's accurate.

Just thought I'd post here in case anyone else has found the same (or does in the future).


Azathoth(Posted 2007) [#2]
dwMemoryLoad should be giving the percentage of physical memory in use.


Grey Alien(Posted 2007) [#3]
Yeah that's what I thought, but it's clearly wrong on my sons PC which had like 230MB in use of 256Mb and it said 55%.