If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
-
cpp
- I live to help wx-kind

- Posts: 195
- Joined: Wed Sep 28, 2005 9:42 pm
Post
by cpp » Wed Aug 30, 2006 9:29 pm
After writting several applications with wxWidgets, i cant belive i "missed" this:
if i override wxApp::OnExit() on my own applications class (wich i allways do). Do i have to call the base class??
eg.
Code: Select all
int MyApp::OnExit()
{
// my own cleanup here...
return wxApp::OnExit();
}
or can i safely ommit the call to the base class?
Hier Kommt die Sonne...
-
DavidHart
- Site Admin

- Posts: 4021
- Joined: Thu Jan 12, 2006 6:23 pm
- Location: IoW, UK
Post
by DavidHart » Wed Aug 30, 2006 10:12 pm
Hi,
Not such a silly question, but I'm fairly sure you don't. The app overview example doesn't; and single-stepping past the end of MyApp::OnExit() arrived in wxEntry (or more accurately wxEntryReal), which contains:
~CallOnExit() { wxTheApp->OnExit(); }
I think we're safe
Regards,
David