您的位置首页生活小窍门

C++执行m_playlist.resetcontent();就报错Debug Assertion Failed

C++执行m_playlist.resetcontent();就报错Debug Assertion Failed

这是断言ASSERT出错.m_playlist是一个CListBox控件?因为resetcontent()函数内有个断言咐告:ASSERT(::IsWindow(m_hWnd));你报错的原因可能是在这里.确定晌枯你的m_playlist是否已经创建并关联了窗口实例,或者你调用resetcontent()函数之宴简洞前,是否该控件窗口已经被销毁了.