C++ Programming
04-02-2009, 08:50 AM
Hi all
Can anybody tell me what is scalar deleting destructor.
When i try to delete a class pointer which is derived from CWnd it is showing this error.
class CGraphTollTip : public CWnd
{
....
....
}
class CGraphicsView : public CScrollView
{
....
....
CGraphTollTip *m_wndGraphTollTip;
void CGraphicsView::OnInitialUpdate()
{
....
m_wndGraphTollTip=new CGraphTollTip[SomeValue];
....
....
}
CGraphicsView::~CGraphicsView()
{
delete [] m_wndGraphTollTip;
}
....
....
}
While deleting m_wndGraphTollTip i am getting this error in vc6.0 callstack.
Please help me.
Can anybody tell me what is scalar deleting destructor.
When i try to delete a class pointer which is derived from CWnd it is showing this error.
class CGraphTollTip : public CWnd
{
....
....
}
class CGraphicsView : public CScrollView
{
....
....
CGraphTollTip *m_wndGraphTollTip;
void CGraphicsView::OnInitialUpdate()
{
....
m_wndGraphTollTip=new CGraphTollTip[SomeValue];
....
....
}
CGraphicsView::~CGraphicsView()
{
delete [] m_wndGraphTollTip;
}
....
....
}
While deleting m_wndGraphTollTip i am getting this error in vc6.0 callstack.
Please help me.