Delphi DOES support exceptions with COM/Automation Objects . Simply raise
the excpetion and the client will get it. If you have a default exception
handler in your server then it is most likely being trapped there. The
std. Delphi exception handler will pass it back to the client correctly.
Eliot Muir <[EMAIL PROTECTED]> on 23/04/99 13:33:11
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
cc: (bcc: Peter Jones/Logistics&Information
Technology/Christchurch/Foodstuffs)
Subject: Re: [DUG]: Safecalls & Exception Handling
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
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz