Forum Discussion
North-E
15 years agoOccasional Contributor
Hm, seemed to me that I wasn't too attentive. I created a simple MCF dialog based application right now and added the following code to dialog's OnInitDialog() function:
BOOL CAQtimeTestDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
malloc(sizeof(int));
new CButton();
new int;
new CMine();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
}
AQtime detected unreleased memory blocks (including my own CMine class) after application has been closed except CButton instance. Does MFC kills it somehow by itself?
BOOL CAQtimeTestDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
malloc(sizeof(int));
new CButton();
new int;
new CMine();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
}
AQtime detected unreleased memory blocks (including my own CMine class) after application has been closed except CButton instance. Does MFC kills it somehow by itself?
Related Content
- 15 years ago
- 15 years ago
- 14 years ago
- 13 years ago
- 14 years ago
Recent Discussions
- 7 months ago
- 2 years ago