我用c++编写了一个程序,用vc编译通过,但是运行时出现一个错误提示框,显示:
Debug Assertion Failed!
Program:(我编的程序的exe文件的路径)
File:f:\dd\vctools\vs7libs\ship\atlmfc\include\afxwin2.inl
Line:1013
Expression:_BLOCK_TYPE_IS_VALID(pHead_>nBlockUse)
For information on how your program can cause an assertion failure,see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
void CProductView::OnInitialUpdate()
{
SetEdit(TRUE);
m_pSet = &GetDocument()->m_ShopsaleSet;
CRecordView::OnInitialUpdate();
}
这里应该就是出错的地方,因为把SetEdit(TRUE);屏蔽掉就可以运行了。
各位大哥能帮我解决吗。