Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一次,我在搜索 MSDN 并找到了一个应用程序配置设置,该设置将在本机到托管边界上下文切换之前强制进行垃圾收集。这对于追踪那些在我想要清理之前被不当清理的引用很有用。我这辈子都不记得那个选项是什么了,它会为任何人敲响警钟吗?
谢谢!
当然,在我发布问题一分钟后,我找到了答案。它是 MDA 或托管调试助手:http: //msdn.microsoft.com/en-us/library/d21c150d.aspx
特别是这部分:gcManagedToUnmanaged MDA。