[wxMac only?] Exception sample not working

Vadim Zeitlin vadim at wxwidgets.org
Mon Jan 21 16:24:00 PST 2008


On Sat, 19 Jan 2008 08:26:25 +0100 H <H at h.com> wrote:

H> Currently I have tested 2.8 branch latest version but I also tested it 
H> sporadically since 2.7:
H> 
H> Compiling wx with the configuration
H> 
H> ./configure --with-mac --enable-debug --enable-unicode 
H> --disable-universal --disable-monolithic --enable-gui --disable-shared 
H> --enable-exceptions --without-odbc --with-opengl
H> 
H> entering make and going to the sample folder except and also entering 
H> make results in a sample that:
H> 
H>  - catches thrown strings -> OK
H>  - crashes badly when ints and objects are thrown.

 I don't know about Mac and can't test the code there right now but with
wxGTK except sample has the same behaviour so maybe wxMac has the same
problem, although I can't explain why would it happen there. As for wxGTK,
in 2.8 the code relies on undefined behaviour as it lets C++ exceptions
propagate through C code. This works just fine under Windows but doesn't
work under Linux at all (except for strings apparently but, again, I really
can't explain this). We fixed it in the trunk where the exceptions are
caught before the control returns to GTK+ code and the except sample works
fine there. Have you tried the trunk version under Mac?

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/




More information about the wx-users mailing list