Find handle leaks

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
JY
Posts: 2
Joined: Fri Nov 28, 2008 2:04 pm

Find handle leaks

Post by JY » Fri Nov 28, 2008 2:14 pm

I have a problem with an application written in C# leaking handles. I can see it with task manager or with WinDbg. Could you tell me if I can use .Net Memory profiler for finding the origin of the leak. Thanks for indicating me how. We have .Net Memory Profiler 3.1.183. professional

JY

Andreas Suurkuusk
Posts: 1029
Joined: Wed Mar 02, 2005 7:53 pm

Post by Andreas Suurkuusk » Sun Nov 30, 2008 6:04 pm

If you enable the unmanaged resources tracker, you should be able to see the handle leak. Detecting handle leaks is similar to detecting memory leaks; it is usually easiest to detect leaks by comparing two snapshots. For more information, take a look at the second tutorial at http://memprofiler.com/tutorials and in the "How to..." documentation at http://memprofiler.com/OnlineDocs/findmemoryleaks.htm. The tutorials have not been updated for the latest version of .NET Memory Profiler, but the second tutorial can provide some useful hints anyway.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests