古詩詞大全網 - 四字成語 - 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()函數之前,是否該控件窗口已經被銷毀了.