Re: Exceptions

> I didn’t realize that, and it may well be true regarding Visual C++.

However, depends on which compiler you use using, it may not be true.

Some compiler’s treat C++ exceptions and SEH exceptions as two totally

AFAIK C SEH (not like C++) is a thing specific to MS compiler.
No such thing in C standard.
C++ try/catch is in the standard, certainly.

Max

To: “Matt Arnold” ;
Sent: Wednesday, February 23, 2000 6:38 PM

> > I didn’t realize that, and it may well be true regarding Visual C++.
> > However, depends on which compiler you use using, it may not be true.
> >
> > Some compiler’s treat C++ exceptions and SEH exceptions as two totally
>
> AFAIK C SEH (not like C++) is a thing specific to MS compiler.
> No such thing in C standard.
> C++ try/catch is in the standard, certainly.

I think you misunderstood my comments. I never meant to imply that SEH was
part of Standard C. Obviously, SEH is a thing specific to Windows
compilers – C, C++, or other.

All I meant to point out that the ability to use the C++ “catch(…)” syntax
to handle an SEH exception is a thing specific to Microsoft C++ compilers
for Windows.

Perhaps there are other compilers that also support this ability, but mine
doesn’t. Some compilers do not allow the intermixing of SEH and C++
exception-handling at all.

Personally, regardless of any “neat tricks” provided by your compiler, I
would recommend always sticking to SEH syntax when dealing with SEH
exceptions, just for clarity.

Regards,

Matt Arnold
Professional Music Products
Mark of the Unicorn, Inc.
http://www.motu.com

To obtain my real address, please replace “biteme” with “motu”. My use of a
fake address is an anti-spam tactic. Sorry for the inconvenience.