Microsoft 应用程序验证器有什么用?
我有 Microsoft 应用程序验证程序与一些 SDK 一起安装。实际上我该如何利用它?有没有简单的例子/解释?
I've got Microsoft Application Verifier installed with some SDK. How do I make any use of it, practically? Are there any simple examples/explanations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应用程序验证程序附加到您的应用程序并执行各种操作来尝试使您的应用程序崩溃,例如模拟资源不足的情况。它还使各种 API 更加严格,并且会执行诸如记录谁泄漏句柄等操作。
您绝对应该在每个桌面应用程序或服务中使用它,尽管要从中获取大量信息,您需要附加 < a href="http://en.wikipedia.org/wiki/WinDbg" rel="noreferrer">WinDbg 到您的进程,应用程序验证器会将更多信息转储到调试窗口。
Application Verifier attaches to your application and does various things to try to make your application crash, like simulating low-resource situations. It also makes various APIs much more strict and will do things like record who leaked handles, etc.
You should definitely be using it with every desktop application or service, though to get a lot of the information out of it, you need to attach WinDbg to your process, and Application Verifier will dump more information out to the debug window.