Generic Lists and GCAlloc.Handle
woodced
Posts: 5
In my Silverlight application I've got some member properties of Controls that are generic lists. For some reason when the Control is destroyed these are left behind as array structures referenced by a System.Object[] which has been GCHandle.Alloc'ed. Is this behavior correct, or is there something up with my app?[/img]
Comments
Objects that can be 'interned', such as strings, will also end up in a similar object array, so this pattern doesn't always indicate a static variable.
However, it's most likely that this is what has happened here: there's a static variable somewhere that is referencing your class, but ANTS has been unable to resolve its name.
Software Developer
Red Gate Software Ltd.
Under what circumstances is ANTS not able to decode the static variable reference? Is there any way of avoiding this circumstance?