Article View: borland.public.cppbuilder.database.multi-tier
Article #786Re: problem exception handling on application server
From: Jeroen Eikmans
Date: Thu, 05 Oct 2000 00:00
Date: Thu, 05 Oct 2000 00:00
70 lines
2379 bytes
2379 bytes
I tested the c builder application server with a delphi client. The delphi
client has something like this:
try
scConnect.AppServer.ThrowExceptionMethod;
except
on E: EOleSysError do
MessageDlg(E.Message,mtInformation,[mbOK],0);
end;
In Delphi the exception generated on the CBuilder server is catched !! It
now seems that the exception generated on the server never enters the
cbuilder client for some kind of reason. But is does enter the delphi
client. Who can explain ??
I use a socket connection.
"Jeroen Eikmans" <office@pulse-experts.nl> wrote in message
news:39daf692$1_1@dnews...
> Hello,
>
> I use C++builder 5.0 to build a midas application server. On this
> app.server I have this method :
>
> STDMETHODIMP TFalisServerImpl::get_ThrowException(long* Value)
> {
> try
> {
> // create an exception
> throw Exception("Server Exception");
> }
> catch(Exception &e)
> {
> return Error(e.Message.c_str(), IID_IFalisServer);
> }
> return S_OK;
> };
>
> On the client I have:
>
> try {
> // call the method on the applicaiton server
> FConnection->ServerInterface.get_ThrowException();
> }
> catch (...) {
> ShowMessage("hi");
> }
>
> The problem is that on the client no exception is catched ?? What am I
doing
> wrong ?? By the way I don't use TClientDataSet.
>
> thanx,
>
>
> --
> Jeroen Eikmans - Software Engineering
>
> Pulse Automation Experts bv
> Marinus Dammeweg 66
> 5928PW VENLO
> The Netherlands
> office@pulse-experts.nl
> +31 (0)77 - 323 26 26
> +31 (0)77 - 323 26 27 fax
> Visit our site: www.pulse-experts.nl
>
>
Technical Details
Message-ID:
<39dc7043$1_2@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39daf692$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,485351d2b3127aaa,start X-Google-Attributes: gidfcd2b,public X-Google-Thread: ffcfe,236d9fd7b315fc0b X-Google-Attributes: gidffcfe,public From: "Jeroen Eikmans" <office@pulse-experts.nl> Subject: Re: problem exception handling on application server Date: 2000/10/05 Message-ID: <39dc7043$1_2@dnews> X-Deja-AN: 677852106 References: <39daf692$1_1@dnews> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Trace: 5 Oct 2000 05:12:51 -0800, 195.109.246.154 Organization: Pulse Automation Experts bv X-MSMail-Priority: Normal Newsgroups: borland.public.cppbuilder.database.multi-tier,borland.public.midas