Find references to the object in runtime

后端 未结 6 792
梦谈多话
梦谈多话 2020-12-15 18:02

I have an object, which lives forever. I am deleteing all references I can see, to it after using it, but it still not collected. Its life cycle is pretty sophisticated so I

6条回答
  •  -上瘾入骨i
    2020-12-15 18:25

    You'll have to use Windbg and Sosex extension.

    The !DumpHeap and !GCRoot commands can help you to identify the instance, and all remaining references that keep it alive.

提交回复
热议问题