Showing objects as new

Memory profiling for .NET developers

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

Showing objects as new

Postby mihies » Fri Nov 16, 2012 9:50 am

Profiler shows existing objects as new sometimes. I didn't yet try to reproduce the behavior, but it goes like:
- I have a master form with a grid, grid references an object
- click on master form's button to show a new mdi form (this form has reference to calling master form)
- close new mdi form
- now the object referenced by master grid sometimes appears as "new object" with Live Instances=1 and Instance Diff=1. But in reality it wasn't recreated or something.

Note that this isn't always the case, just sometimes. And I am pretty sure that grid wasn't recreated nor its referenced object. Any idea what's going on?
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
Righthand .net consulting and software development
Posts: 64
Joined: Mon Oct 09, 2006 10:01 am
Location: Nova Gorica, Slovenia

Postby Chris.Allen » Mon Nov 19, 2012 1:47 pm

I've noticed something similar happening recently- I think it might be a bug. I'm checking with the developer since it may well be my lack of understanding at what New/Existing Object really means... Please bear with me while I get a definitive answer.
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby Chris.Allen » Tue Nov 20, 2012 2:20 pm

So- 'new object' is defined only in relation to the snapshots taken; 'new' simply means it did not exist in the first selected snapshot. So- your observation is a little out of context since I don't know when you took your snapshots.

Can you do some 'before-and-after' snapshots and check if it now makes more sense.

Please note, each snapshot you take shifts the baseline along by one.

If it's still not making sense, save your results and we'll take a look at them:
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Return to ANTS Memory Profiler 7

Who is online

Users browsing this forum: No registered users and 0 guests