Visual Studio 2017 KernelBase.dll模块未找到异常

时间:2018-01-30 00:42:07

标签: c++ visual-studio-2017 runtime-error 32-bit runtimeexception

我正在尝试使用Visual Studio 2017在Windows 10上构建一个32位应用程序。该应用程序在64位中构建并运行良好,但它无法从32位版本正常运行。

调用堆栈:

    KernelBase.dll!741b08b2()   Unknown Non-user code. Cannot find or open the PDB file.
    [Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]        Annotated Frame
    common32.dll!77765569() Unknown No symbols loaded.
    common32.dll!77765424() Unknown No symbols loaded.
    [External Code]     Annotated Frame
>   MobileDOAS.exe!ATL::CSimpleStringT<char,0>::CSimpleStringT<char,0>(ATL::IAtlStringMgr * pStringMgr) Line 208    C++ Symbols loaded.
    common32.dll!7776649b() Unknown No symbols loaded.
    common32.dll!7776625b() Unknown No symbols loaded.
    OmniDriver32.dll!778b044e() Unknown No symbols loaded.
    MobileDOAS.exe!CSpectrometer::CSpectrometer() Line 33   C++ Symbols loaded.
    MobileDOAS.exe!CMeasurement_Traverse::CMeasurement_Traverse() Line 7    C++ Symbols loaded.

调试输出:

'MobileDOAS.exe' (Win32): Loaded 'C:\Users\Diana\git\MobileDOAS\Debug\MobileDOAS.exe'. Symbols loaded.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\win32u.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Program Files (x86)\Ocean Optics\OmniDriver\OOI_HOME\common32.dll'. Module was built without symbols.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32full.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Program Files (x86)\Ocean Optics\OmniDriver\OOI_HOME\OmniDriver32.dll'. Module was built without symbols.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\comdlg32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msimg32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr100.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\SHCore.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.16299.192_none_d02ca7595f31d9e4\comctl32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\windows.storage.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\profapi.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winspool.drv'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oledlg.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcrypt.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.16299.192_none_8e60f76b0273650f\GdiPlus.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleacc.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\winmmbase.dll'
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.16299.192_none_5d760485a7e0eb41\comctl32.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\TextInputFramework.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreUIComponents.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreMessaging.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Cannot find or open the PDB file.
'MobileDOAS.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\WinTypes.dll'
Exception thrown at 0x741B08B2 (KernelBase.dll) in MobileDOAS.exe: 0xC06D007E: Module not found (parameters: 0x00DADF0C).
Unhandled exception at 0x741B08B2 (KernelBase.dll) in MobileDOAS.exe: 0xC06D007E: Module not found (parameters: 0x00DADF0C).

截图:

Screenshot of exception

我已检查项目属性是否有外部依赖项,并确保我使用32位版本的include目录。我让它在某一点工作,但经过一些改变后,尽管我试图恢复任何变化,但我仍然无法继续工作。

1 个答案:

答案 0 :(得分:0)

原来,代码想要访问的光谱仪的32位驱动程序被64位版本自动覆盖。禁用自动驱动程序更新后,在我的PC上删除64位驱动程序安装程序的任何副本,并重新安装32位驱动程序;我终于开始工作了。