问题标签 [application-verifier]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - App Verifier Stop 00000900 使用文件打开对话框
我的 C++/MFC 程序使用 CFileDialog 类来检索要打开的文件名。如果我注释掉DoModal()
呼叫,则不会发生 Verifier Stops。如果打开对话框(即使它只是简单地取消),则会生成停止 - 连续三个。
所以我尝试了通用文件对话框示例:https ://github.com/Microsoft/Windows-classic-samples/tree/master/Samples/Win7Samples/winui/shell/appplatform/commonfiledialog 。同样的事情:三个 AV 900 站点。评论对 的调用IFileDialog::Show()
,停止消失。
注意: 根据 MFC 提供的源代码,CFileDialog 类包装了 IFileDialog;CFileDialg::DoModal()
包裹IFileDialog::Show()
。
我在两台计算机上复制了这个问题。第三,它运行没有问题!我强调将我的构建工具与成功机器上的工具同步——仍然可以停止。
以下是运行通用文件对话框示例的三个停止:
这是 DLL 名称的转储(所有三个站点都相同):
如您所见,一些地址从一站更改为下一站。
这是!heap
第一个 Stop 的泄漏分配地址(参数 1)的输出:
我在用着:
- VS2019
- 工具集 v142
- Windows SDK 版本 10.0.19041.0
提前感谢您的任何反馈。很乐意提供任何其他要求的信息。
干杯,戴夫
c - Understanding Application Verifier error codes
I need to analyze a crash dump which reports an unhandled exception triggered by the AppVerif application. Usually the Application Verifier send an exception when a problem is detected in one of the checks flagged in the UI (heap, handle and leak error /problems).
Usually when I open the crash dump in Visual Studio I see in the Output panel a meaningful message like "A heap allocation was leaked" or "Critical section not initialized". Now I only get this:
And the call stack only shows _VerifierStopMessage@40 and one of my function which call EnterCriticalSection
but apparently the handle of the mutex is correctly initialized.
I suppose the value 40, 0x00000013 or 0x00000030 should be error codes while the other are memory addresses. However I can't figure out what is the specific problem reported by the Application Verifier.
Is there a list of error codes for the Application Verifier ? How can I have a better understanding of the reported error ?
windows - 应用程序验证器和 MapViewOfFile
我刚开始使用 Application Verifier (10.0,x64) 来调试一些潜在的内存问题,但现在我遇到了几个以前从未出现过的奇怪问题。
例如,当我调用MapViewOfFile()
小于 400KB 的文件时,我得到了 return value 8
,我相信是ERROR_NOT_ENOUGH_MEMORY
. 引发错误的特定文件似乎是随机变化的,有时根本不会引发错误。HEAP
我已将 Application Verifier选项缩小到BASIC
. 必须启用此选项才能引发错误。在使用 Application Verifier 之前,我从未遇到过与此相关代码相关的任何问题。
这是否指向我的代码某处的问题,或者这是某种类型的不兼容?这就是我试图回答的问题。
这是我的功能。我意识到这个小片段并没有提供太多细节,所以如果你想看一些具体的东西,请告诉我。我只使用这个函数来映射整个文件。到目前为止,所有抛出错误的文件都是纹理 PNG 图像。这可能是因为所有其他文件相比之下都很小。
是否有人对 Application Verifier(及其选项)足够熟悉,HEAP
可以帮助我弄清楚为什么会发生这种情况?
windows - 调整每个进程调用的图像文件执行选项
如何调整每个进程调用的图像文件执行选项(如 CreateProcess 调用)?
可以以编程方式启用应用程序验证程序,但这通过在 hkey_local_machine 中创建一个影响所有进程的持久注册表项来工作,并且需要管理员访问权限才能这样做。我想为单个进程启用等效的特定应用程序验证器复选框,而不是每个 exe。