Page 1 of 1

GC Handle type not shown when using "Attach To"

Posted: Tue Sep 09, 2008 11:03 pm
by bralston7
When I start up an application using MemProfiler, the type of GCHandle gets reported to me in the output (ie. Weak, Pinned, RefCounted). However, when I attach to a already running process, it just reports that it as GCHandle (or <root> sometimes, it seems). Is this a limitation of using "Attach to"


Posted: Wed Sep 10, 2008 9:29 pm
by Andreas Suurkuusk
Yes, this is a limitation when using "Attach to". The profiler cannot retrieve information about GC handles when attaching, it just sees roots. However, by analysing WeakReferences and System.GCHandle, it can deduct that some roots are in fact <GCHandle>s.