From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,e7e13c943c611b62 X-Google-Attributes: gid10f8a1,public X-Google-Thread: 102b75,be3d6a6131c61fa7 X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,be3d6a6131c61fa7 X-Google-Attributes: gid1164f8,public From: "Jan Gray" Subject: Re: Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? Date: 1999/04/14 Message-ID: #1/1 X-Deja-AN: 466333469 Distribution: world References: <36E9F2A0.9A401A09@pacific.net.sg> <924046418.053.46@news.remarQ.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: abuse@gtei.net X-Trace: +rTuhtyoapKAvfgnRBUk3FhRTj0V7XgK3oZT5Y/Cf47w7BQMPGnEu4Jw5Lkz8yAcG3r4iFHku4Ov!ZRWOPLX+hoEaSnUQyUadwm8g2pgr3w8sNIDkSXqpqis0EuHven581P6fqr4N8p4= Organization: none NNTP-Posting-Date: Wed, 14 Apr 1999 15:47:25 GMT Newsgroups: comp.arch,comp.sys.dec,vmsnet.alpha 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