Finding Mem Usage of another program
-
To make a long story short, there's an external program that I have no control over that is consistantly leaking memory. This product is required by our customer, so we must use it. :mad: Obviously, this program will cause Windows to run out of free memory if it is run long enough. Is there a way I can see the current Memory Usage of this other program -- like what Task Manager is displaying? I'd like my program to either warn the user or destroy that task if the size gets too large. Any ideas?
-
To make a long story short, there's an external program that I have no control over that is consistantly leaking memory. This product is required by our customer, so we must use it. :mad: Obviously, this program will cause Windows to run out of free memory if it is run long enough. Is there a way I can see the current Memory Usage of this other program -- like what Task Manager is displaying? I'd like my program to either warn the user or destroy that task if the size gets too large. Any ideas?
Try CreateMemoryResourceNotification() Also look up "Performance Monitoring" in the SDK documentation. (ms-help://MS.MSDNQTR.2004APR.1033/perfmon/base/performance_monitoring_architecture.htm[^] in MSDN) Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
-
Try CreateMemoryResourceNotification() Also look up "Performance Monitoring" in the SDK documentation. (ms-help://MS.MSDNQTR.2004APR.1033/perfmon/base/performance_monitoring_architecture.htm[^] in MSDN) Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
If you have psapi.dll then take a look at Collecting Memory Usage Information For a Process