提问人:DianChen 提问时间:6/7/2023 最后编辑:DianChen 更新时间:6/9/2023 访问量:84
LoadLibrary 的断点,输出:Exception thrown
breakpoint at LoadLibrary with output :Exception thrown
问:
#include <windows.h>
int main(int argc, char* argv[])
{
HINSTANCE hinstLib = ::LoadLibrary(TEXT("VSPerf170.dll"));
if (hinstLib != NULL)
{
BOOL fFreeResult = ::FreeLibrary(hinstLib);
}
return 0;
}
当我开始调试时,断点在输出:
在测试.exe 0x76B8E292引发异常:Microsoft C++异常:内存位置0x00EFF330 xSharedMemoryException。LoadLibrary
Windows 10、Visual Studio 2022 17.6.2
请帮忙~
VSPerf170.dll
是 Visual Studio 2022 的一个组件,可用于性能分析。
很抱歉,这个问题不清楚。 它是使用 Visual Studio Community 2022(最低版本)构建的简单 Win32 应用程序名称“测试”。 上面只有一个文件test.cpp包含这些代码。
当我开始调试时,它停在第一行。
以下是调试输出:
'test.exe' (Win32): Loaded 'D:\program\test.exe'. Symbols loaded.
'test.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'.
'test.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'.
'test.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'.
'test.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'.
'test.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'.
The thread 0x438c has exited with code 0 (0x0).
'test.exe' (Win32): Loaded 'C:\Windows\SysWOW64\VSPerf170.dll'.
'test.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'.
'test.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'.
'test.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'.
'test.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'.
Exception thrown at 0x76B8E292 in test.exe: Microsoft C++ exception: xSharedMemoryException at memory location 0x00EFF3C8.
下面是调用堆栈:
KernelBase.dll!76b8e292()
[Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
VSPerf170.dll!7b8295c2()
VSPerf170.dll!7b825c8c()
VSPerf170.dll!7b826357()
VSPerf170.dll!7b825a95()
VSPerf170.dll!7b81bf07()
VSPerf170.dll!7b81c06d()
VSPerf170.dll!7b82851a()
VSPerf170.dll!7b8285fc()
ntdll.dll!77aa2ab6()
ntdll.dll!77a7de02()
ntdll.dll!77a81903()
ntdll.dll!77a81a71()
ntdll.dll!77a82315()
ntdll.dll!77a7e332()
ntdll.dll!77a7df76()
KernelBase.dll!76b735b6()
KernelBase.dll!76b7411a()
KernelBase.dll!76b740d2()
ucrtbased.dll!7b712c02()
ucrtbased.dll!7b70fa93()
ucrtbased.dll!7b712c02()
ucrtbased.dll!7b6d042e()
kernel32.dll!768800f9()
ntdll.dll!77a97bbe()
ntdll.dll!77a97b8e()
答: 暂无答案
评论