How to know an object is being referenced by which object(s)?

  • Thread starter Thread starter Sin Jeong-hun
  • Start date Start date
S

Sin Jeong-hun

I have an object that allocates a lot of memory. It looks like that
the object is referenced by some other object(s), so that it cannot be
collected. I put a debug output in its destructor, and called
GC.Collect() but the debug output wasn't seen. I'm suspecting a third-
party UI control that this object is used with, but I'm not sure
where.

Is there any way to found out an object is being referenced by which
object(s) at debugging time?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top