Re: Structured exception
"George" wrote:
1. when they happen, structured exception will be thrown
automatically and
if we do not catch such structured exception, program will be
halted?
Correct.
But I think C++ exception will also be thrown at the same time,
since there
is a related C++ exception overflow_error based on runtime_error
class. So I
think catch either one (structured exception or overflow_error)
is ok?
Anything wrong?
No. Again, structured exceptions and C++ exceptions are two
separate mechanisms that don't intersect and live in parallel. If
you want to catch SE in C++ code, then you must translate it to
C++ first.
2.
If I only handle C++ exception, even if using catch (...) --
catch all --
handler, some critical exception like you mentioned access
violation will
still be missed unless I use structured exception handler?
You can't catch structured exception with C++ `catch' statement.
That's it. Doug's FAQ describes a possible solution for this
situation.
Alex