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
trevor lane
0

Comments

2 comments

  • Alex D
    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 D
    0
  • trevor lane
    Thanks Alex,

    And a fantastic product suite I must say.
    trevor lane
    0

Add comment

Please sign in to leave a comment.