Skip to main content
gamedev.net
๐Ÿ”’ Locked

Watch available memory

Started by Palidine Dec 27, 2001 at 6:26 PM 1 replies 400+ views
Original Post
Palidine
Palidine
hey, memory newbie question: is there an easy way (not visual C environment specific) to watch the amount of free memory available so i can look for memory leaks? -me
Martee
Martee
I''m not sure if this is the kind of thing you are looking for, but you can see how much free memory there is with the following code:
  
MEMORYSTATUS memInfo;
GlobalMemoryStatus(&memInfo);
freeMemory = memInfo.dwAvailPhys;
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Martee
Martee
One more thing ... if you''re running NT, you could just look at Task Manager.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.