Exceptions and C-callbacks?

Rob Kramer wrobbie@my-Deja.com
Tue Feb 8 22:50:00 GMT 2000


Hi all,

A quick question, before I investigate further. My application uses a
function from a C-library (an event handler) that does a callback to a
static function in my application class which in turn calls some C++
code (via a stored 'this' pointer).

  Application -> C-event handler -> C-callback -> C++ callback handler.

My problem: the C++ callback handler can throw exceptions, but they
are never caught in the application and result in an 'Abort!'.

Is this a normal feature of GCC's exception handling mechanism, i.e.
does the C-callback stuff intercept exceptions in some way?

I'm using DJGPP here by the way, this may be a DOS related issue..
If my problem is not due to GCC's exception handler, I'll make a
isolated testcase.

Thanks!

        Rob Kramer
        robk@cyberway.com.sg




--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.


More information about the Gcc mailing list