Detected memory leaks!
Dumping objects ->
{430} client block at 0x02C827C0, subtype c0, 84 bytes long.
a CSliderCtrl object at $02C827C0, 84 bytes long
Object dump complete.
CSliderCtrl 成员变量出现内存泄露现象,这是在类的析构函数中没有释放该变量所占的内存,解决方法如下:
CMyDlg::~CMyDlg()
{
if (m_densityCtrl)
{
delete m_densityCtrl;
m_densityCtrl = NULL;
}
}