是有可能确定对象是否正由另一对象引用? [英] Is it possible to determine if an object is being referenced by another object?
问题描述
我在C#程序中的内存泄漏并不能确定是谁在持有引用到我的对象。有没有在运行时的方法来确定哪些对象持有到一个特定的对象的引用?
I have a memory leak in my C# program and cannot determine who is holding the reference to my object. Is there a way at runtime to determine which objects are holding a reference to a specific object?
在这个经济我的预算是零,所以本地或免费的解决方案是我的唯一的选择。
In this economy my budget is zero, so a native or free solution is my only choice.
推荐答案
查看 .NET内存分析器的。他们有14天的免费试用(所以你的预算是安全的)。从功能页的摘录...
Check out .NET Memory Profiler. They have a 14 day free trial (so your budget is safe). Excerpt from the features page ...
有关托管类型实例的
以下附加信息
介绍:
For a managed type instance the following additional information is presented:
- 从和实例
每注释:同意100%......值得非常合理的许可费用
Per comments: Agree 100% ... well worth the very reasonable license fee.
这篇关于是有可能确定对象是否正由另一对象引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!