Red Gate forums :: View topic - Finding objects in the finalizer queue
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler 7
ANTS Memory Profiler 7 forum

Finding objects in the finalizer queue

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
mspost



Joined: 14 Apr 2011
Posts: 1

PostPosted: Thu Apr 14, 2011 3:29 pm    Post subject: Finding objects in the finalizer queue Reply with quote

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?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Mon Apr 18, 2011 3:58 pm    Post subject: Reply with quote

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/278902/using-statement-vs-try-finally
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group