On Wed, 2003-07-16 at 13:11, Egbert Eich wrote:
We have a bug report at

http://bugs.xfree86.org/show_bug.cgi?id=503

that suggests that when building libraries with callbacks using gcc
the option -fexeptions should be used. It enables C++ programs
to catch the exceptions.

Is this useful if the libraries don't properly handle exceptions
being thrown through them?


I'd really suspect that most/all places where there are callbacks in the X libraries they will leak memory / corrupt state / otherwise
misbehave if you throw an exception from a callback and catch it in the surrounding code.

Just out of curiosity... Does anyone know if it's safe to throw exceptions through the X client libraries provided by Solaris, HP-UX and AIX? Those are compiled using something corresponding to the -fexceptions flag....


---------------
David Juran
System administrator
E-mail: [EMAIL PROTECTED]
Phone: +46-31-7226259
      +46-7390-18259
Carmen Systems AB
Odinsgatan 9
SE-411 03 Goteborg, Sweden


_______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel

Reply via email to