| Author |
Message |
trevor lane
Joined: 29 Aug 2010 Posts: 5
|
Posted: Sun Aug 29, 2010 2:41 am Post subject: Only finalizer queue GC roots |
|
|
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 |
|
 |
Alex.Davies
Joined: 02 Dec 2008 Posts: 335 Location: Cambridge, uk
|
Posted: Tue Aug 31, 2010 9:56 am Post subject: |
|
|
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 |
|
 |
trevor lane
Joined: 29 Aug 2010 Posts: 5
|
Posted: Tue Aug 31, 2010 12:28 pm Post subject: |
|
|
Thanks Alex,
And a fantastic product suite I must say. |
|
| Back to top |
|
 |
|
|
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