程序刚运行就弹出这个对话框
Debug   Assertion   Failed!   
Program:   E:\XXXX\XXXX.exe   
File:dbcore  .cpp   
line   1065
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.然后又弹出1个对话框应用程序发生异常unknown software exception(ox80000003),位置为0x77fa144b。
要终止程序,请单击“确定”,要调试程序,请单击“取消”。

解决方案 »

  1.   

    自己写的程序吗?编译debug版本,crash时取消调试,看调用堆栈在哪儿
      

  2.   

    是这个吧,但是我看不太懂啊
    CRecordset::Open(unsigned int 4294967295, const char * 0x00000000, unsigned long 0) line 1065 + 31 bytes
    CExperSystemnewView::FindBest2() line 1519 + 29 bytes
    CExperSystemnewView::readdata() line 829
    CExperSystemnewView::OnTimer(unsigned int 1) line 173
    CWnd::OnWndMsg(unsigned int 275, unsigned int 1, long 0, long * 0x0012fd50) line 1829
    CWnd::WindowProc(unsigned int 275, unsigned int 1, long 0) line 1585 + 30 bytes
    AfxCallWndProc(CWnd * 0x01546eb8 {CExperSystemnewView hWnd=???}, HWND__ * 0x000e01e4, unsigned int 275, unsigned int 1, long 0) line 215 + 26 bytes
    AfxWndProc(HWND__ * 0x000e01e4, unsigned int 275, unsigned int 1, long 0) line 368
    USER32! 77df2ca8()
    USER32! 77df2dc5()
    USER32! 77df577d()
    CWinThread::Run() line 480 + 11 bytes
    CWinApp::Run() line 400
    AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00133a5b, int 1) line 49 + 11 bytes
    WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00133a5b, int 1) line 30
    WinMainCRTStartup() line 198 + 54 bytes
    KERNEL32! 77e687f5()
      

  3.   

    调试检查FindBest2()这个函数,看看Open Recordset的时候传入的参数是否正确,集合是否正确