本人是个小白,今天安装opencv3.4,运行第一个例子,有点儿问题。
代码是这样的
然后运行的时候显示了图片,几秒后关闭,但是调试器并没有关闭。首先控制台的输出如下信息:
“Test1.exe”(Win32): 已加载“H:\C++ code for vs2017\Test1\x64\Debug\Test1.exe”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\ntdll.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\kernel32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\KernelBase.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\msvcp140d.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\vcruntime140d.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\ucrtbased.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“D:\Program Files\opencv\build\x64\vc15\bin\opencv_world340d.dll”。无法查找或打开 PDB 文件。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\gdi32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\gdi32full.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\avicap32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\avifil32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\user32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\msvcrt.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\combase.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\msvfw32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\win32u.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\ucrtbase.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\advapi32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\ole32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\sechost.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\rpcrt4.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\oleaut32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\winmm.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\bcryptprimitives.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\msvcp_win.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\comdlg32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\shell32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\SHCore.dll”。无法查找或打开 PDB 文件。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\cfgmgr32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\shlwapi.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\windows.storage.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\winmmbase.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\winmmbase.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\powrprof.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\kernel.appcore.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\msacm32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\profapi.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.14393.447_none_0d5aa7fbb6d35646\comctl32.dll”。已加载符号。
“Test1.exe”(Win32): 已卸载“C:\Windows\System32\winmmbase.dll”
“Test1.exe”(Win32): 已加载“C:\Windows\System32\concrt140d.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.14393.447_none_0d5aa7fbb6d35646\comctl32.dll”。已加载符号。
“Test1.exe”(Win32): 已卸载“C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.14393.447_none_0d5aa7fbb6d35646\comctl32.dll”
“Test1.exe”(Win32): 已加载“C:\Windows\System32\imm32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\uxtheme.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\msctf.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\dwmapi.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\clbcatq.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\SogouTSF.ime”。无法查找或打开 PDB 文件。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\version.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\msimg32.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\SogouPY.ime”。无法查找或打开 PDB 文件。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\winhttp.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\oleacc.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\ntmarta.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Program Files (x86)\SogouInput\8.8.0.1956\Resource.dll”。无法查找或打开 PDB 文件。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\cryptbase.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Windows\System32\psapi.dll”。已加载符号。
“Test1.exe”(Win32): 已加载“C:\Program Files (x86)\SogouInput\Components\PicFace\1.1.0.1810\PicFace64.dll”。无法查找或打开 PDB 文件。
线程 0x3de4 已退出,返回值为 0 (0x0)。
线程 0x6e4 已退出,返回值为 0 (0x0)。
线程 0x3550 已退出,返回值为 0 (0x0)。
线程 0x840 已退出,返回值为 0 (0x0)。
线程 0xef4 已退出,返回值为 0 (0x0)。
线程 0x2580 已退出,返回值为 0 (0x0)。
线程 0x38d4 已退出,返回值为 0 (0x0)。
线程 0x2ef8 已退出,返回值为 0 (0x0)。
0x00007FFF20367950 (ntdll.dll)处(位于 Test1.exe 中)引发的异常: 0xC0000005: 读取位置 0x0000000000000010 时发生访问冲突。
其次,弹出一个标签页,叫“无可用源”。里面附加信息,此模块的调试信息中缺少源信息。0x00007FFF20367950 (ntdll.dll)处(位于 Test1.exe 中)引发的异常: 0xC0000005: 读取位置 0x0000000000000010 时发生访问冲突。
首先之前是出现过一个错误是,未加载任何符号的标签页,里面写着,未加载ntdll.pdb。而后我按照一个博客修改了配置,于是出现上面的情况。
我是这样配置的,在【调试】->【选项】->【调试】->【常规】,勾选“启用源服务器支持”,然后在【调试】->【选项】->【调试】->【符号】下,勾选“Microsoft符号服务器”。最后运行的时候,第一次出现很慢,的确没有了“未加载任何符号”的那个标签页,却出现上面的结果。
求问如何解决这个问题