What tools are available to detect heap corruption in .NET/C# program?

梦想与她 提交于 2019-12-25 04:01:17

问题


I know that I can use WinDbg+PageHeap+ApplicationVerifier - Microsoft tools.

I read there are many tools available for C++ and wonder if there is something similar exists for C#?


回答1:


These are the kind of tools you use to troubleshoot mis-behaving native code. Access violations, heap corruption, resource leaks, that sort of thing. That just doesn't happen in pure managed code by virtue of the concept of safe code and the garbage collector. If you have a dependency on native code in your managed project that misbehaves that way (Fatal Execution Engine Error for example) then you still use the same tools. Diagnosing it is never easy.



来源:https://stackoverflow.com/questions/7471288/what-tools-are-available-to-detect-heap-corruption-in-net-c-program

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!