我的程序build没有出现错误,但是在运行的时候,会出现一个对话框,
Debug Assertion Failed!
Program:F:\\\\\.exe
File:afxdb.inl
Line:73
for information on how your program can cause an asseration failure,see the Visual C++ Documentation on asserts.
Debug Assertion Failed!
Program:F:\\\\\.exe
File:afxdb.inl
Line:73
for information on how your program can cause an asseration failure,see the Visual C++ Documentation on asserts.
Program:F:\\\\\.exe
File:afxdb.inl
Line:73
--------------------------
查看下该文件的73行代码。出这种错误可能原因是:
1 数据库指针打开数据文件出错,打开失败后指针为NULL,但是仍然执行了读写操作
2 指针访问表数据行越界。比如在表数据行的0行执行MovePrevise,或是行末执行了MoveNext
3 空数据表读数据出错--表文件中没有数据的情况下,直接执行了读操作
当然还可能是其它原因--比如是你的窗体创建的问题,以上仅仅是个人的经验:)
之类的错误,单步执行找。