Options

Reference listed but unable to find

Hopefully someone can explain this to me. I have an object that is not being GCed when I believe it should be. I am using ANTS to try to find out where the reference remains. Only one is listed:

Control+ControlNativeWindow

It is listed as having been allocated by:
System.Windows.Forms.Control..ctor

How exactly am I supposed to destroy this reference? The object is a control derived from UserControl, and I am calling base.Dispose from my override. Any suggestions?

Comments

  • Options
    Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hello,

    I'm sorry I don't have any firm suggestions about how to fix this problem. In the past, I believe I have run across some information about windows remaining in memory. I think you may want to look into the controls that are part of this windows, and seeing if there is a Dispose method on those as well. But I'm not sure about this. Perhaps a programmer resource such as www.codeproject.com could be a better resource for finding the answer, as they are an active resource for full-time .NET developers.
Sign In or Register to comment.