简体   繁体   English

调试断言失败 CDialog

[英]Debug Assertion Failed CDialog

I have an error in my c++ project.我的 C++ 项目中有错误。 If I clicked "Cancel" or "OK" or "X" buttons program is crashing and display an error like the screenshot.如果我单击“取消”或“确定”或“X”按钮,程序会崩溃并显示类似屏幕截图的错误。 What could be problem?可能有什么问题? Here is full code ;这是完整的代码; http://pastebin.com/54DfqrDb http://pastebin.com/54DfqrDb

在此处输入图片说明

void CSettingDlg::OnBnClickedCancel()
{
    CDialog::OnCancel();
}

void CSettingDlg::OnBnClickedOk()
{
    CDialog::OnOK();
}

I fixed this problem.我解决了这个问题。 If I declare already don't working a class variable this problem is occurred.如果我声明已经不使用类变量,则会出现此问题。

Solution :解决方案 :

//CZipArchive       m_ZipArchive; //this class variable is don't working for me

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM