Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
- Posts: 5
- Joined: Wed Apr 30, 2008 8:09 pm
When I attach to my application running, perform some tasks, then perform a Collect Heap Snapshot, I see some things that have references that I do not expect to have references.
When I drill down on these objects, and view the Referenced By list I see several objects with the yellow warning symbol next them warning me about delegate references or something like that
I check the check box "Only show instances included in root paths". When I check the check box the list in the Referenced By goes blank.
Do I or don't I have a memory leak?
I am guessing because I attached to the process a GC is not performed before the snap shot is taken, thus I will see some things differently than if I started the application using the profiler.
- Posts: 1029
- Joined: Wed Mar 02, 2005 7:53 pm
When you collect a snapshot on an attached process, there's always a risk that there are lingering instances presented by the profiler (e.g. instances waiting for finalization). In order to see all root paths for an instance, you might need to deselect "Only include identified roots". After you have done that, you should be able to see why the instance has not been GCed. If you need help investigating this, please provide some more information about the instances that are left on the heap, includuding one or more root paths.
SciTech Software AB
Users browsing this forum: Bing [Bot] and 22 guests