首先我的呼叫堆疊輸出的視窗沒有出現這個情況
'CoolSimulators.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll', No symbols loaded.
CoCreateInstance of OLE control {AB9D831B-277B-4927-8F89-C1CBBEB9E611} failed.
>>> Result code: 0x80040154
>>> Is the control is properly registered?
Warning: Resource items and Win32 Z-order lists are out of sync. Tab order may be not defined well.
'CoolSimulators.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', No symbols loaded.
這個是我的情況“Robot.exe”: 已加載“C:\Users\yangyafei\Desktop\Robot2010除錯用\Debug\Robot.exe”,已加載符號。
“Robot.exe”: 已加載“C:\Windows\SysWOW64\ntdll.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\kernel32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\KernelBase.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\opengl32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\msvcrt.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\advapi32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\sechost.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\rpcrt4.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\sspicli.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\cryptbase.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\gdi32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\user32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\lpk.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\usp10.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\glu32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\ddraw.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\dciman32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\setupapi.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\cfgmgr32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\oleaut32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\ole32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\devobj.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\dwmapi.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Users\yangyafei\Desktop\Robot2010除錯用\Debug\HjyPlatUtil.dll”,未使用除錯資訊生成二進制檔案。
“Robot.exe”: 已加載“C:\Windows\SysWOW64\mfc42.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\odbc32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Users\yangyafei\Desktop\Robot2010除錯用\Debug\IEUCap.dll”,未使用除錯資訊生成二進制檔案。
“Robot.exe”: 已加載“C:\Users\yangyafei\Desktop\Robot2010除錯用\Debug\Raw2Rgb.dll”,未使用除錯資訊生成二進制檔案。
“Robot.exe”: 已加載“C:\Users\yangyafei\Desktop\Robot2010除錯用\Debug\DrawUtil.dll”,未使用除錯資訊生成二進制檔案。
“Robot.exe”: 已加載“C:\Windows\SysWOW64\msvcr100d.dll”,已加載符號。
“Robot.exe”: 已加載“C:\Windows\SysWOW64\mfc100d.dll”,已加載符號。
“Robot.exe”: 已加載“C:\Windows\SysWOW64\shlwapi.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\msimg32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\ws2_32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\nsi.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\msvcp100d.dll”,已加載符號。
“Robot.exe”: 已加載“C:\Windows\SysWOW64\apphelp.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\AppPatch\AcLayers.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\shell32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\userenv.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\profapi.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\winspool.drv”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\mpr.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\imm32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\msctf.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\odbcint.dll”,未使用除錯資訊生成二進制檔案。
“Robot.exe”: 已加載“C:\Windows\SysWOW64\uxtheme.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\mfc100chs.dll”,未使用除錯資訊生成二進制檔案。
Warning: Resource items and Win32 Z-order lists are out of sync. Tab order may be not defined well.
“Robot.exe”: 已加載“C:\Users\yangyafei\AppData\Roaming\TaobaoProtect\TaobaoProtectSE.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\psapi.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\crypt32.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\msasn1.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\version.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\sfc.dll”,Cannot find or open the PDB file
“Robot.exe”: 已加載“C:\Windows\SysWOW64\sfc_os.dll”,Cannot find or open the PDB file
Robot.exe 已觸發了一個斷點
另外,我的專案資源視圖里邊有一個Dialog出現這個情況(在6.0上邊卻沒有出現)如圖所示:

可能跟我注冊的控制元件
uj5u.com熱心網友回復:
上邊的沒有寫完整,請原諒上邊的圖可能跟我注冊的控制元件的次數有關系,我之前按照網上得方法注冊了好幾遍,具體是什么原因請大神指點指點,
這個程式是6.0的。現在在2010上除錯,編譯沒有錯誤,但是執行出現Debug Assertion 的問題 指標指向這里ASSERT(IsWindow(pTemp->m_hWnd)); 還請大神多指點下。
uj5u.com熱心網友回復:
ASSERT(IsWindow(pTemp->m_hWnd)); 斷言出錯 指標有空值了吧 你看看你的指標啊 貼了一大堆無用的 有用資訊太少了uj5u.com熱心網友回復:
ASSERT(IsWindow(pTemp->m_hWnd));指標無效,或者關聯的HWND視窗無效了
uj5u.com熱心網友回復:
樓上說的對,就是你出現了空指標。此時你需要明確你視窗句柄是不是仍然有值。斷言錯誤,一般都是這種問題轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/116850.html
標籤:基礎類
下一篇:FindResource 的問題
