Determining a memory Leak

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
Guest

Determining a memory Leak

Post by Guest » Mon Apr 25, 2005 12:58 pm

I am on the classes page after comparing two snap shots. What column identifies that a memory leak exists? The documentation says: "If a memory leak exists, you should be able to find a class with new instances that should have been garbage collected" How is this identified graphically? Thanxs!

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

Post by Andreas Suurkuusk » Mon Apr 25, 2005 8:39 pm

You cannot identify memory leaks graphically. To detemine whether a new instance should have been garbage collected you need to have some knowledge of the program you're profiling. Things like brushes, pens etc. in a Windows Forms application are often very short-lived and can usually be disregarded when looking for memory leaks. Form and Control instances on the other hand are usually not short-lived, and new instances of those classes may indicate a memory leak.

If you have not already done so, I suggest that you take a look at the tutorials at: http://memprofiler.com/tutorials. Lesson 2 guides you through the process of finding a memory leak.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests