如题.

解决方案 »

  1.   

    XP IE6崩溃时就是先弹出一个错误对话框,让你发送/不发送错误报告。QQ也是这样的。
      

  2.   

    错误信息如图所示:
    http://www.enwww.net/_temp/bug.jpg
      

  3.   

    呵呵~~~我好像找到了,应该是这个函数,试试先。SetUnhandledExceptionFilter
      

  4.   

    已经解决了。异常时回调函数定义:
    LONG WINAPI TOP_LEVEL_EXCEPTION_FILTER(_EXCEPTION_POINTERS *ExceptionInfo)
    {
    CString strError;
    strError.Format(_T("ExceptionCode = 0x%x, ExceptionAddress = 0x%x"), 
    ExceptionInfo->ExceptionRecord->ExceptionCode,
    ExceptionInfo->ExceptionRecord->ExceptionAddress);
    ::MessageBox(NULL, strError, _T("错误"), MB_OK);
    return 1; // 返回0,继续错误信息,返回1,程序直接退出.
    }
    程序启动时:
    BOOL CTestexceptionApp::InitInstance()
    {
        SetUnhandledExceptionFilter(TOP_LEVEL_EXCEPTION_FILTER);//设置异常处理回调函数}