Hello,If you hang on to the control a long time after it has been disposed,
When a control is disposed, should it first set its Tag property (if
present) to null ?
I use a commercial control and I saw (with a .NET memory profiler) that
the objects I put in this property were not collected even when the
control is disposed (until I set the tag
property to null)
you can set the Tag property to null to make thae object that it
references collectable.
Otherwise there is rarely any reason to setting references to null. When
the control gets collectable, any objects that it references (and isn't
references from somewhere else) also automatically gets collectable.
--
Göran Andersson
_____
http://www.guffa.com