Hi,
I’m trying to implement the catching of an unhandled exception in my own code, based on the except.cpp sample, but not having any luck under VS2010. My scenario is as follows:
1 – I’m using a non-WX serialisation library (Boost) for loading and saving data. If the loading operation encounters a file with an incorrect format (maybe due to some change in the target class since the last build) an unhandled exception is thrown and it’s this eventuality I want to trap so that I can ignore the file without termination of the application;
2 – I have try/catch blocks around the relevant lines of code, but the WX unhandled exception dialog is still triggered;
3 – I put the following line in my application’s main .hpp file:
#define wxUSE_EXCEPTIONS = 1
Is this correct, please?
Best wishes.
Tim Burgess
Raised Bar Ltd
Phone: +44 (0)1827 719822
Don't forget to vote for improved access to music and music technology at
http://www.raisedbar.net/petition.htm
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+u...@googlegroups.com
or visit http://groups.google.com/group/wx-users