Trying to implement an inactivity timeout for my application I
implemented a wxTimer derived class with the Notify function overidden.
I found that when throwing an exception in the Notify function the
exception would not be caught in wxApp::OnExceptionInMainLoop, instead
the app would exit (with the debugger indicating the exception thrown).
I changed my wxTimer derived class to instead Bind a class function as
the timer handler, the exception was then caught by OnExceptionInMainLoop.
Probably not a common situation, and a pretty easy work-around but
thought you might like to know.
wxWidgets 2.9.0
OS X 10.6 using g++-4.0, OS X SDK 10.4
Regards
Dion
DW> I found that when throwing an exception in the Notify function the
DW> exception would not be caught in wxApp::OnExceptionInMainLoop, instead
DW> the app would exit (with the debugger indicating the exception thrown).
This is definitely a bug and it exists in all ports I looked at (OS X,
GTK, MSW). I don't have time to fix it now but I'll at least mention it in
the documentation, thanks for reporting.
FWIW I can also confirm that your workaround is the right/best thing to do
currently.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/