Only finalizer queue GC roots

Memory profiling for .NET developers

Only finalizer queue GC roots

Postby trevor lane » Sun Aug 29, 2010 1:41 am

I ahve an application that seem to have a lot of memory leaks which is indicated by your profiler as

'Kept in memory only by disposed objects'

When I look at the Object Retention graph it shows 'No GC roots in the current view'

If I uncheck 'Hide finalizer queue GC roots' I can see all of the objects on the finalizer queues.

The only object in the graph that is holding a reference to my form is ""

I am thinking that this is probably not a memory leak, but the form will disappear from the list when the finalizer is called on the above item.

Am I right, or should I panic now.


trevor lane
Posts: 5
Joined: Sun Aug 29, 2010 1:32 am

Postby Alex.Davies » Tue Aug 31, 2010 8:56 am

You can work out whether this is the case by taking a second snapshot. Doing that tends to run all the finalizers and clear up any objects that are only held by the finalizer queue.
Red Gate .NET Tools
Posts: 335
Joined: Tue Dec 02, 2008 11:23 am
Location: Cambridge, uk

Postby trevor lane » Tue Aug 31, 2010 11:28 am

Thanks Alex,

And a fantastic product suite I must say.
trevor lane
Posts: 5
Joined: Sun Aug 29, 2010 1:32 am

Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests