RE: C++ Exceptions from SCE-MI Error and/or Info Handler?

From: Bojsen, Per <bojsen@zaiqtech.com>
Date: Wed Jun 23 2004 - 07:30:40 PDT

Hi John,

I'm sorry, I mistakenly referred to the application when I
wanted to say implementation in the following paragraph:

> However, my concern is that it is possible for an application
                                                    ^^^^^^^^^^^
   This should have said *implementation*.

> to call the SCE-MI error handler from outside the normal call-chain
> of the application. If the error handler throws an exception in
> this case, the exception handler the user installed will not catch
> the exception. An example of how this might occur is if the
> implementation employs interrupt handlers, signal handlers, or
> callbacks that execute with a different stack than the user's
> application code.

While I agree with all your comments they were unfortunately
not addressing my main concern :-) But that is my fault. Please
read the above again with the correction I indicated.

> One slight clarification to what you stated above, you said
> that "it is possible for an application to call the SCE-MI
> error handler ...". Generally the application itself does
> not call the error handler directly.

Right, of course, I knew that :-) I meant implementation,
not application . . . Sorry, it was late when I wrote that.

So, I still contend that SCE-MI can be implemented in a way
that makes it possible for the user's error handler to be called
outside of any call chain initiated by the user, hence exception
handling will fail. According to your position and the spec
which mentions C++ exception handle as a valid error handling
mechanism this would be a buggy implementation, then, right?
Note, I am not just making this up but can't be more specific
than that . . .

Per
Received on Wed Jun 23 07:30:34 2004

This archive was generated by hypermail 2.1.8 : Wed Jun 23 2004 - 07:30:36 PDT