PDA

View Full Version : Reseting a software based on windows RAM consumption



Momergil
21st May 2012, 12:59
Hello!

Currently I'm developing a software that should be able to be reseted when Windows RAM memory is to high. Regarding this project, I would like to ask:

* Is it possible to command the reseting (not only closing! The software needs to be restarted) from within the software? Or I truly need to create a second software that is called when the reseting is needed and that controls the event?
**In case of needing to create a second software, how can I read Windows's process to check if/when my software is started so the second one, that to the restart, can be automatically closed?
* How can I know how much RAM memory is being used by Windows using Qt/C++?


I guess that's all that is needed.

Thanks,


Momergil

Momergil
29th May 2012, 19:29
Does anybody has something to say about it?

:S

Added after 1 20 minutes:

Anycase, I found the answer:

http://stackoverflow.com/questions/63166/how-to-determine-cpu-and-memory-consumption-from-inside-a-process

God bless,

Momergil