George George

George George

  • NA
  • 778
  • 0

monitor for handle leak

Jun 5 2008 2:51 AM

Hello everyone,


I want to monitor whether the handles of my C# application is released timely. The handles I mean various native handles wrapped by various Stream classes, like XMLReader/XMLWriter, Request.InputStream of Http request, etc.

(I do not use any native handles directly, and I only use C# wrap class like StreamReader.)

Currently, I am using Process Explorer --> Select the specific process for my C# application --> Select Properties --> Select Performance Tab --> Watch for "Handles" (including Handles, GDI Handles and USER Handles).

My questions are,

1. Is it the correct method to serve my purpose?
2. Any better tools or methods to use? :-)


thanks in advance,
George