What is "Yes - Weak Reference"

Memory profiling for .NET developers

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

What is "Yes - Weak Reference"

Postby hamishg » Sat Feb 04, 2012 2:10 pm


I replied a post made for a previous version of ANTS memory profiler, however I am using the latest version to see this.
http://www.red-gate.com/messageboard/vi ... hp?t=11746

Is someone able to have a look?
Posts: 2
Joined: Thu Jan 26, 2012 4:06 pm

Postby Brian Donahue » Wed Feb 08, 2012 12:15 pm

Hello Hamish,
WeakReferences can also be kept in memory by other references which are not weak references. Also 'm under the impression that while loops can keep weak references on the heap because the Framework will not allow them to be collected while the loop is running. But I believe Andrew has provided a better answer back on your other topic.
Brian Donahue
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