CDialog & Free Memory
-
Hi. My problem is if my program is using 10,000kb then i load a catalog in CDialog
OnBnClickedC() { CatDlg dlg; dlg.DoModal(); }
memory raises 18,000kb and when i close de dialog it returns to between 12,000 and 13,000kb why? how should i release the dialog? i tried with new and delete with the same results. Please help me. Update: i see that when i load the dialog, a lot of dlls load with it, but all dlls unload only when i exit the application not when i quit the dialog. Why? -
Hi. My problem is if my program is using 10,000kb then i load a catalog in CDialog
OnBnClickedC() { CatDlg dlg; dlg.DoModal(); }
memory raises 18,000kb and when i close de dialog it returns to between 12,000 and 13,000kb why? how should i release the dialog? i tried with new and delete with the same results. Please help me. Update: i see that when i load the dialog, a lot of dlls load with it, but all dlls unload only when i exit the application not when i quit the dialog. Why?Mr. Unknown wrote: how should i release the dialog? There's nothing to release. It's a stack-based object. Read the last section of this article for clarification.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen