I am building a c/s system,but now I am runing into the trouble as title.
when client process receive a message from server process,it show a modeless dialog,and when user click close button, it hide the dialog.

at first everything is ok,and then the client process is crashed. gdb shows
the error as title.


below is my way how to realize this.


class ApplicationWindow:: public QMainWindow
{
....
protected:

CControlDlg m_controlDlg; //inherit from QDialog,and I pass this to it as it's parent window in ApplicationWindow's Construct function
}


display the dialog:
ApplicationWindow::showControlDlg()
{
m_control.show()
}

hide the dialog:

CControlDlg::closeEvent(QCloseEvent* e)
{
this->hide();
}

thanks anyone who can give me some idea!