I'm new to this memory-leak hunting, so please bare with me.

WPF app, C#.

In my snapshot analysis, I'm seeing 1711 classes, but only a few that concern me. And out of those, really, only one does - System.String

Live Size bytes are 506,824 (yowch)
Live Instances - 7880

Now, if I go to the Class Reference explorer, I see that 51% of my Strings belong to System.Object[].

48% are GC Roots, 4% Collections.ArrayList

I am at a loss on what to do next.

I did look at the list of my almost 8000 objects, I see things like multiple instances of items in my resx files - that really stood out at me. But I'm not sure where to go from here.

I appreciate any insight and direction that anyone can give me try to cut these string objects down.

Thank you so much!
tperri
0

Comments

1 comment

  • nick.maidment
    Please can you save your results and email them to support @ red-gate.com with the reference F0036950 in the subject line?

    If you haven't seen them already, there are a whole bunch of tutorial videos here: http://www.red-gate.com/products/ants_m ... /video.htm

    While they are not necessarily specific to wpf, the principles behind them can be utilized in the same way.
    nick.maidment
    0

Add comment

Please sign in to leave a comment.