Red Gate forums :: View topic - Only finalizer queue GC roots
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

Only finalizer queue GC roots

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
trevor lane



Joined: 29 Aug 2010
Posts: 5

PostPosted: Sun Aug 29, 2010 2:41 am    Post subject: Only finalizer queue GC roots Reply with quote

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 "system.windows.forms.application+ModalApplicationContext"

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.

Cheers

Trevor
Back to top
View user's profile Send private message
Alex.Davies



Joined: 02 Dec 2008
Posts: 335
Location: Cambridge, uk

PostPosted: Tue Aug 31, 2010 9:56 am    Post subject: Reply with quote

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.
_________________
Alex
Developer,
Red Gate .NET Tools
Back to top
View user's profile Send private message
trevor lane



Joined: 29 Aug 2010
Posts: 5

PostPosted: Tue Aug 31, 2010 12:28 pm    Post subject: Reply with quote

Thanks Alex,

And a fantastic product suite I must say.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group