Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Programmatic application close
[b][red]This message was edited by Palmpje at 2005-8-25 11:23:10[/red][/b][hr]
This one beats me...
I want to close my app programmatically (as opposed to File/Exit or hitting the 'x' at the top right). I can do this by say using PostQuitMessage(0) and it works, but.... I get a long list of memory leaks whereas I did not allocated any memory at all. The only thing in there is the Doc and the View class.
If I close the program with the File/Exit command the memory leaks do not appear.
I tried checking whether the destructor of the View is called and it is not called when I use PostQuitMessage() but it is called on a 'normal' exit. Could not find any clues yet.
I'm probably being very blond but any help would be appreciated.
0 · ·