First-chance exception的解决方法
我现在正在用VC+Mapx开发,当程序执行到:
m_eagleMapX.Create(NULL,WS_VISIBLE,CRect(0,0,200,200),this,IDC_MAP_eagle);
的时候,程序会转而去调用钩子函数:
_AfxCbtFilterHook(int code,WPARAM wParam,LPARAM lParam)
这时候在VC的output中显示:The thread 0x498 has exited with code 0(0x0)(这是什么线程退出了呢?为什么会退出呢?)
在执行_AfxCbtFilterHook中弹出异常:
First-chance exception in VasGis.exe(KERNAL32.DLL):0XE06D7326:Microsoft C++ Exception
这个问题困扰我很长时间了,我的程序Debug一遍,会弹出大约8个First-chance,这是我程序的问题还是VC的问题呢?
谢谢