我用编写了一个Dll程序,在ExitInstance()中释放内存
在程序调用该DLL后,在结束程序时为何出错
int CZyDbLibApp::ExitInstance()
{
// TODO: Add your specialized code here and/or call the base class
if (DbSystem) {
delete DbSystem;
} return CWinApp::ExitInstance();
}BOOL CZyDbLibApp::InitInstance()
{
// TODO: Add your specialized code here and/or call the base class
DbSystem = new CSystem();
return CWinApp::InitInstance();
}
在程序调用该DLL后,在结束程序时为何出错
int CZyDbLibApp::ExitInstance()
{
// TODO: Add your specialized code here and/or call the base class
if (DbSystem) {
delete DbSystem;
} return CWinApp::ExitInstance();
}BOOL CZyDbLibApp::InitInstance()
{
// TODO: Add your specialized code here and/or call the base class
DbSystem = new CSystem();
return CWinApp::InitInstance();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货