Hi,
I have a windows app and I would like to get memory usage of this app when it's running. Is there a way to do this?
best Regards.
How to get memory usage from Task Manager?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Mar 7, 2012, 12:18 AM EST
int memKB = (int)System.Diagnostics.Process.GetCurrentProcess().WorkingSet64 / 1024;
See also the Process class documentation for further details:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx
RaysefoRank #4,173 · 360 reputationPosted Mar 7, 2012, 1:41 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Mar 7, 2012, 3:19 AM EST