我做了一个对话框程序,创建了一个属性表单:CPropSheet,然后插入3个属性页,
还有一个退出按钮,当我退出的时候调用EndDialog(IDOK);而EndDialog调用
void CPropSheet::OnDestroy()
{
CPropertySheet::OnDestroy();
}debug模式下老是出错 Debug Assertion Fail
File:f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\wincore.cpp
line:906
For information on how your program can cause an assertion failure,see thi Visual C++ documentation on asserts.
(Press Retry to debug the application )
这样错误
Release下就没有事,是否内存泄露了
请大家提供一下解决方法,谢谢
还有一个退出按钮,当我退出的时候调用EndDialog(IDOK);而EndDialog调用
void CPropSheet::OnDestroy()
{
CPropertySheet::OnDestroy();
}debug模式下老是出错 Debug Assertion Fail
File:f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\wincore.cpp
line:906
For information on how your program can cause an assertion failure,see thi Visual C++ documentation on asserts.
(Press Retry to debug the application )
这样错误
Release下就没有事,是否内存泄露了
请大家提供一下解决方法,谢谢
解决方案 »
- 关于ClassWizard,如何向里面添加一个已经存在的类(拷贝的文件)
- 急!请教MSChart散点图的画法?
- 请问什么叫语法高亮啊??谢谢!
- CArchive 存数据最前端总带乱码!如何解决
- 高手请进!-急-在线等!- 关于 Extension Dll
- SDK窗口中的拖放
- 怎样才能使服务程序具有Pause的功能,请教大家
- 到底是不是病毒?每次打开一个文件夹都会自动产生两个隐藏文件desktop.ini和folder.htt
- 向所有VC++高手叫板!!!你们有什么软件用VC++做不了的,我用VB试试,哈哈哈~~~~
- ****************简单问题,高分求救???????????????????????
- 关于Scroll Bar 的问题
- UDP的校验问题
{
if (m_hWnd == NULL)
return; // null (unattached) windows are valid // check for special wnd??? values
ASSERT(HWND_TOP == NULL); // same as desktop
if (m_hWnd == HWND_BOTTOM)
ASSERT(this == &CWnd::wndBottom);
else if (m_hWnd == HWND_TOPMOST)
ASSERT(this == &CWnd::wndTopMost);
else if (m_hWnd == HWND_NOTOPMOST)
ASSERT(this == &CWnd::wndNoTopMost);
else
{
// should be a normal window
ASSERT(::IsWindow(m_hWnd)); //这里提示出错了 // should also be in the permanent or temporary handle map
CHandleMap* pMap = afxMapHWND();
ASSERT(pMap != NULL); CObject* p=NULL;
if(pMap)
{
ASSERT( (p = pMap->LookupPermanent(m_hWnd)) != NULL ||
(p = pMap->LookupTemporary(m_hWnd)) != NULL);
}
ASSERT((CWnd*)p == this); // must be us // Note: if either of the above asserts fire and you are
// writing a multithreaded application, it is likely that
// you have passed a C++ object from one thread to another
// and have used that object in a way that was not intended.
// (only simple inline wrapper functions should be used)
//
// In general, CWnd objects should be passed by HWND from
// one thread to another. The receiving thread can wrap
// the HWND with a CWnd object by using CWnd::FromHandle.
//
// It is dangerous to pass C++ objects from one thread to
// another, unless the objects are designed to be used in
// such a manner.
}
}
请大家帮助一下,谢谢