哪些工具可用于检测.NET/C#程序中的堆损坏? [英] What tools are available to detect heap corruption in .NET/C# program?

查看:59
本文介绍了哪些工具可用于检测.NET/C#程序中的堆损坏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以使用WinDbg + PageHeap + ApplicationVerifier-Microsoft工具.

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

我读到有很多可用于C ++的工具,想知道C#是否存在类似的东西?

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

推荐答案

这些是用于解决行为不当的 native 代码的工具.访问冲突,堆损坏,资源泄漏之类的事情.依靠安全代码和垃圾收集器的概念,在纯托管代码中根本不会发生这种情况.如果您对托管项目中的本机代码有某种依赖性(例如,发生致命执行引擎错误),则您仍将使用相同的工具.诊断它绝非易事.

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.

这篇关于哪些工具可用于检测.NET/C#程序中的堆损坏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆