Deleting objects
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hello, I Have one dialog application. I am creating some objects dynamically in OnInitDialog() method which are used life time of the application. I want to know best method to delete these objects on closing the application. Thanks, Chito
If they are created in OnInitDialog() and stored within the dialog, then the obvious place to delete them would be within the dialog destructor. Since in a dialog app, the application will terminate not long after the dialog is destroyed, it is probably the best place to do it. Dave http://www.cloudsofheaven.org