Interpreting an Instance Retention Graph

Memory profiling for .NET developers

Moderators: Luke Jefferson, StephenC, AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton

Interpreting an Instance Retention Graph

Postby Shaggs » Mon Apr 16, 2012 7:23 am

I've just started using ANTS Memory profiler, and I'm having some trouble working out just what the instance retention graph means. I have managed to use it to identify some memory leaks - mostly events that were not being de-registered. But I have now come across some references in the graph which I cant work out what they are being caused by.

A screengrab of my graph can be seen here: http://www.decezy.com/images/ANTS_Screenshot1.png

I cant work out whats going on here. The FrmJobCard is the form which is not being released from memeory. The UltraCalcManager is an infragistics tool which allows other Infragistics controls to calculate a value, based on other controls. When added to the form, it automatically adds itself to all the controls in the FrmJobCard.Designer.cs.

There are no events associated with it (UltraCalcManager), so there is nothing to unload.

Can someone point me in the direction I need to go? What to look for? Or if this forum is not for this kind of thing, where can I go?

Thanks.
Shaggs
 
Posts: 1
Joined: Mon Apr 16, 2012 7:02 am

Postby james.billings » Mon Apr 16, 2012 6:48 pm

Thanks for your post. It's hard to be specific without having your code to hand, but based on your screenshot it looks like some of the Infragistics styling objects are the cause (the delegates hooked up to the XPThemes.themeChanged, Office2007ColorSchemeChangedNotifier.colourSchemeChanged and StyleManager.styleChanged.
It's a while since I've worked with Infragistics controls to really recall how these are configured, but I'd check you've not set some events on those somewhere that aren't being unhooked, or whether these implicitly get created by a styleManager type object you're not clearing?
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.


Return to ANTS Memory Profiler 7

Who is online

Users browsing this forum: No registered users and 0 guests