当我包括:
#include <vld.h>;
在我的 stdafx.h 中运行我的程序,它说安装了 Visual Leak Detector 2.5。我可以很好地运行我的程序,但是当它退出时,我得到了这个错误:
Exception thrown at 0x00007FFFB7F57FE7 (ntdll.dll) in CPPAssessment.exe: 0xC0000005: Access violation reading location 0x00007FFFB8095252.
If there is a handler for this exception, the program may be safely continued.
但是我只有在启用 Visual Leak Detector 时才会得到这个,所以我的猜测是这就是问题所在。
然而,我确实找到了这个站点:Visual Leak Detector Forums有人提到了一个修复程序,但它导致了一个带有 vld.cpp 文件的 github 存储库,我不知道如何处理它。
似乎该错误是由 Windows 10 周年更新引起的,但我不确定。