ASSERT(m_pchData != NULL)错误
诶呦 2011-08-01 10:47:43 _AFX_INLINE CStringData* CString::GetData() const
{ ASSERT(m_pchData != NULL); return ((CStringData*)m_pchData)-1; }
不知道哪里错了,会出现这个错误。
当我在Dlg类中添加变量int nHeight1;int nWidth1;时程序一切正常没有问题,然后在添加变量int nHeight2;int nWidth2;,程序可以运行,但是在结束时会出现上面的问题。
如果我在dlg.CPP开头把变量声明成全局变量就没有这个错误,请问这是什么原因。