Hi,
i download the "C ActiveX Sample.zip C++ Sample " and tried to execute it, but i have some problem when i try to close the sample application:
if i click the "Exit" button, but got a error:
the instruction at "0x7c283520" referenced memory at "0x00000004". the memory could not be "read"
if i click X on the right top of the dialog, i got the eSignal Crash.
i found in the source code
void MainDialog::OnExit()
{
this->~MainDialog();
}
but no EndDialog(), but when i add CDialog::EndDialo (IDCANCEL) as:
void MainDialog::OnExit()
{
this->~MainDialog();
CDialog::EndDialog(IDCANCEL);//bing
}
got an error :
Debug Assertion Failed!
File: dlgcore.cpp
Line: 563
Please help me for this question, thanks so much
i download the "C ActiveX Sample.zip C++ Sample " and tried to execute it, but i have some problem when i try to close the sample application:
if i click the "Exit" button, but got a error:
the instruction at "0x7c283520" referenced memory at "0x00000004". the memory could not be "read"
if i click X on the right top of the dialog, i got the eSignal Crash.
i found in the source code
void MainDialog::OnExit()
{
this->~MainDialog();
}
but no EndDialog(), but when i add CDialog::EndDialo (IDCANCEL) as:
void MainDialog::OnExit()
{
this->~MainDialog();
CDialog::EndDialog(IDCANCEL);//bing
}
got an error :
Debug Assertion Failed!
File: dlgcore.cpp
Line: 563
Please help me for this question, thanks so much
Comment