No COM doesn't support exceptions - in C++ your supposed to catch
them and then use the IErrorInfo interface to raise them - not sure how it's
done under Delphi - I haven't written COM objects using the language.
Cheers,
Eliot
Kerry Sainsbury wrote:
> That's my understanding too.
> Surely 'Catastrophic Failure' conveys all the information you could ever
> need :-)
>
> ------
> um, I'm not 100% sure, but I recall something about COM not supporting
> exceptions - it has a "worked/didn't work" method. This might have been
> DCOM,
> but I think it was COM as well.
>
> Nic.
>
> Myles Penlington wrote:
> >
> > How (can?) do you get Exceptions propagated back to the caller from a COM
> object when used with OLE?
> > What is? How to you use safecallExceptionhandler?? - Any Examples??
> > My understanding is that for all methods defined as safecall, is that the
> Delphi compiler wraps this in a try .. except block - Does Delphi call
> SafeCallExceptionHandler as part of Except block???
> > What happens in the calling application if this is done??
> > i.e I want to have exceptions propagated back to the caller program or
> have the equivalent occur.
> > Any help or Info appreciated.
> > TIA
> > Myles Penlington.
> >
> >
> >
> > --------------------------------------------------------------------------
> -
> > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> > Website: http://www.delphi.org.nz
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz