Memory profiling for .NET developers
Moderators: Luke Jefferson, StephenC, AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton
My app has a slow memory leak, and the problem is that there are lots and lots of System.Threading.ReaderWriteLock objects on the finalizer queue. I do NOT create any of these objects directly, so I would like to figure out the chain of objects creating them leading back to my objects (or perhaps a third party control).
ANTS is reporting that they are directly on the finalizer queue, but garbage colleciton is never cleaning them up.
Is there a way (I'm relatively new to ANTS) in memory profiling to indicate in advance "track the creation path of all System.Threading.ReaderWriterLock objects". I didn't see a way to do this. Is there another approach to the problem?
- Posts: 1
- Joined: Thu Apr 14, 2011 3:26 pm
ANTS Memory Profiler is only really effective at showing the chain of references for an object and when objects are disconnected and sitting in the Finalizer, it can't really help.
But for my two cents it could be the way some using blocks are implemented.
http://stackoverflow.com/questions/2789 ... ry-finally
- Posts: 6670
- Joined: Mon Aug 23, 2004 10:48 am
Return to ANTS Memory Profiler 7
Who is online
Users browsing this forum: No registered users and 0 guests