Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written a program for a Windows Mobile 6.0 device that needs to run 24/7.

For diagnostic purposes, I want my program to be able to periodically report the number of handles and the memory that the process has consumed.

My program is a Compact Framework app (C#), but I call windows api functions for certain information.

What functions will give me that information?

This legacy app uses CF 2.0 so the Process class does not have the handle count.
Posted
Updated 19-Aug-14 8:08am
v2

1 solution

The windows API hast GetProcessHandleCount and the .net has Process.HandleCount.

It both wont fit, so you need to better protect the handles. Direct close after open or more secure code.

WM 6.0 is really outdated rubbish ;-)
 
Share this answer
 
Comments
rickerj 19-Aug-14 14:12pm    
Thanks very much for your help. Unfortunately this legacy app uses CF 2.0. Also, GetProcessHandleCount is not in the core of CE 6.0

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900