From: "Jan Gray" <jsgray@acm.org.nospam>
Subject: Re: Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care?
Date: 1999/04/14 [thread overview]
Message-ID: <hM2R2.2498$b73.139198@paloalto-snr1> (raw)
In-Reply-To: zalmanFA5wBE.Czo@netcom.com
Zalman Stern wrote in message ...
>returns do not have this problem. Microsoft's structured exception
>handling was an attempt in that direction but last I looked it basically
>wasn't compatible with either COM or their C++ implementation.
>
>Point being that its pretty hard to let exceptions propagate across large
>API lines right now. Still, using them internally works out pretty well.
I agree with this sentiment. In the (mostly) implementation language
neutral world that is the Microsoft "milieu", interfaces to libraries, DLLs,
and COM components should not use exception handling.
To elaborate on some details, if I recall correctly,
1. MS C++ EH is built on Win32 SEH. An MS C++ "throw obj;" expression
raises a Win32 SEH exception.
2. If C code #1 calls C++ code which calls C code #2 which raises an SEH
exception which is caught and handled by C code #1, the proper C++ exception
handling and unwind semantics occur to the intervening C++ frames.
3. If C++ code #1 calls C code which filters SEH exceptions and which calls
C++ code #2 which throws a C++ object up to a catch block in #1, the right
things happen -- the C filter(s) are called (and should not consume the
exception), and the thrown C++ object is caught correctly.
4. Both Win32 SEH and MS C++ EH work correctly across separately authored
dynamic link libraries (which is rather non-trivial for C++ EH).
5. COM is a language neutral, mostly location transparent, binary method
invocation standard. (A COM component implementer often assumes her objects
will be called from another language from a client on another machine.) In
lieu of language neutral exception handling, therefore, good COM components
should not throw exceptions.
6. The remoting infrastructure (DCOM interface proxies/stubs) catches Win32
SEH (hence MS C++ EH) exceptions and maps them into RPC_E_SERVERFAULT errors
or some such. Atop this is a mechanism for providing/marshaling extended
error information (ISupportErrorInfo, IErrorInfo), thanks :-) to VB, and I
vaguely recall the MS VM for Java can throw and catch Java exceptions across
COM method invokes (although this would seem to violate the spirit of COM).
("C code" above is an abbreviation for "any non-MS-C++ code which follows
the Win32 SEH frame linkage conventions".)
Jan Gray
next prev parent reply other threads:[~1999-04-14 4:00 UTC|newest]
Thread overview: 124+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-13 5:00 Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? N Novakovic
1999-03-14 5:00 ` Compiler for Alpha/Linux (Re: " News Man
1999-03-15 5:00 ` Chris Petersen
1999-03-15 5:00 ` Clint Comes
[not found] ` <36EEE5F6.69F7@world.std.com>
[not found] ` <7cog3r$hj8$1@plonk.apk.net>
1999-03-21 5:00 ` N Novakovic
1999-03-20 5:00 ` Terry C. Shannon
1999-03-20 5:00 ` Robert Harley
1999-03-20 5:00 ` Zalman Stern
1999-03-21 5:00 ` Anil T Maliyekke
1999-03-22 5:00 ` Chris Petersen
1999-03-21 5:00 ` Jan Vorbrueggen
1999-03-22 5:00 ` Zalman Stern
1999-03-23 5:00 ` N Novakovic
1999-03-25 5:00 ` Cameron Laird
1999-04-08 4:00 ` Jan Vorbrueggen
1999-04-08 4:00 ` Ian Kemmish
1999-04-09 4:00 ` Steven J. Luther
1999-04-09 4:00 ` Terry C Shannon
1999-04-08 4:00 ` John Stone
1999-04-08 4:00 ` Jan Vorbrueggen
1999-04-08 4:00 ` Andy Glew
1999-04-10 4:00 ` Jeff Kenton
1999-04-12 4:00 ` Maynard Handley
1999-04-12 4:00 ` Andrew Reilly
1999-04-13 4:00 ` Andy Freeman
1999-04-13 4:00 ` Jan Vorbrueggen
1999-04-13 4:00 ` Andy Freeman
1999-04-14 4:00 ` Zalman Stern
1999-04-14 4:00 ` Andy Freeman
1999-04-16 4:00 ` Maynard Handley
1999-04-13 4:00 ` Zalman Stern
1999-04-13 4:00 ` TTK Ciar
1999-04-14 4:00 ` Zalman Stern
1999-04-14 4:00 ` TTK Ciar
1999-04-14 4:00 ` Jan Gray [this message]
1999-04-14 4:00 ` Larry Kilgallen
1999-04-24 4:00 ` Exception handling Daniel P. B. Smith
1999-04-24 4:00 ` Zalman Stern
1999-04-24 4:00 ` Daniel P. B. Smith
1999-04-25 4:00 ` Zalman Stern
1999-04-25 4:00 ` Erik Corry
1999-05-06 4:00 ` Greg Law
1999-05-06 4:00 ` Fragile Base Class Erik Corry
1999-05-06 4:00 ` Exception handling Zalman Stern
1999-04-25 4:00 ` Andi Kleen
1999-04-13 4:00 ` Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? Larry Kilgallen
1999-04-13 4:00 ` Zalman Stern
1999-04-16 4:00 ` Maynard Handley
1999-04-16 4:00 ` Zalman Stern
1999-04-19 4:00 ` Eric Hildum
1999-04-18 4:00 ` Samuel Paik
1999-04-19 4:00 ` Ketil Z Malde
1999-04-19 4:00 ` Fred Kleinsorge
1999-04-22 4:00 ` dejadan7
1999-04-23 4:00 ` Adam Price
1999-04-18 4:00 ` Exceptions, Error codes, and Wrappers Andy Glew
1999-04-19 4:00 ` Hoff Hoffman
1999-04-14 4:00 ` Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? TTK Ciar
[not found] ` <F9zI7t <371ACB9F.F9A9710@webnexus.com>
1999-04-19 4:00 ` Martin Vorlaender
1999-04-20 4:00 ` Samuel Paik
1999-04-10 4:00 ` TTK Ciar
1999-04-12 4:00 ` Jan Vorbrueggen
1999-04-12 4:00 ` Maynard Handley
1999-04-12 4:00 ` Peter da Silva
1999-04-12 4:00 ` Jan Vorbrueggen
1999-04-13 4:00 ` N Novakovic
1999-04-16 4:00 ` Peter Mayne
1999-04-16 4:00 ` Zalman Stern
1999-04-19 4:00 ` Peter Mayne
1999-04-20 4:00 ` Zalman Stern
1999-04-16 4:00 ` Zalman Stern
1999-04-12 4:00 ` TTK Ciar
1999-03-22 5:00 ` John Aldridge
1999-03-23 5:00 ` N Novakovic
1999-03-23 5:00 ` Network effect (was Re: Did Intel pay UGS to kill Alpha port?...) Steven Correll
1999-03-24 5:00 ` Maynard Handley
1999-03-24 5:00 ` Jeffrey J. Potoff
1999-03-25 5:00 ` Maynard Handley
1999-03-25 5:00 ` Aaron Spink
1999-03-26 5:00 ` Auto Security (was Re: Network effect (was Re: Did Intel pay UGS to kill Alpha port?...)) Chris
1999-03-25 5:00 ` Network effect (was Re: Did Intel pay UGS to kill Alpha port?...) George Cornelius
1999-03-26 5:00 ` Allen J. Baum
1999-03-27 5:00 ` Larry Kilgallen
1999-03-26 5:00 ` Larry Kilgallen
1999-03-25 5:00 ` Pete Zaitcev
1999-03-25 5:00 ` Alan Frisbie
1999-03-25 5:00 ` Rob Rodgers
1999-03-25 5:00 ` Maynard Handley
1999-03-25 5:00 ` Jeffrey J. Potoff
1999-03-25 5:00 ` Peter Seebach
1999-03-25 5:00 ` Consumers Reports (was: Network effect ...) Dennis O'Connor
1999-03-26 5:00 ` Peter Seebach
1999-03-26 5:00 ` Zalman Stern
1999-03-26 5:00 ` Network effect (was Re: Did Intel pay UGS to kill Alpha port?...) Terry C. Shannon
1999-03-25 5:00 ` Patrick F. McGehearty
1999-03-26 5:00 ` Pete Zaitcev
1999-03-26 5:00 ` Peter da Silva
1999-03-29 5:00 ` Joe Pfeiffer
1999-03-24 5:00 ` Terry C. Shannon
1999-03-27 5:00 ` Larry D Bohan, Jr
1999-03-27 5:00 ` JohnC
1999-03-28 5:00 ` Larry D Bohan, Jr
1999-03-28 5:00 ` Peter da Silva
1999-03-28 5:00 ` Gary Heston
1999-03-24 5:00 ` Bruce Hoult
1999-03-24 5:00 ` Peter Seebach
1999-03-24 5:00 ` Terry C. Shannon
1999-03-24 5:00 ` Toon Moene
1999-03-27 5:00 ` Mark
1999-03-27 5:00 ` Resistance must organize (was Re: Network effect Paul DeMone
1999-03-27 5:00 ` Mark
1999-03-28 5:00 ` Usenet formatting (was Re: Resistance must organize) Bengt Larsson
1999-03-28 5:00 ` Mark
1999-03-30 5:00 ` Bengt Larsson
1999-03-28 5:00 ` John Moreno
1999-03-30 5:00 ` Zalman Stern
1999-03-30 5:00 ` Bengt Larsson
1999-03-30 5:00 ` Mark Rogers
1999-04-01 5:00 ` Eric Hildum
1999-03-31 5:00 ` John Moreno
1999-03-30 5:00 ` Network effect (was Re: Did Intel pay UGS to kill Alpha port?...) Joe Keane
1999-03-22 5:00 ` Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? Chris Petersen
1999-03-25 5:00 ` Jeff and Beth Donsbach
1999-04-08 4:00 ` Jan Vorbrueggen
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox