Thread View: borland.public.cppbuilder.database.multi-tier
4 messages
4 total messages
Started by Jeroen Eikmans
Wed, 04 Oct 2000 00:00
problem exception handling on midas server
Author: Jeroen Eikmans
Date: Wed, 04 Oct 2000 00:00
Date: Wed, 04 Oct 2000 00:00
46 lines
1510 bytes
1510 bytes
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
Re: problem exception handling on midas server
Author: Mark Cashman (TeamB)
Date: Wed, 04 Oct 2000 00:00
Date: Wed, 04 Oct 2000 00:00
8 lines
895 bytes
895 bytes
Try a catch (Exception &VCLException) instead of catch(...) ------ Mark Cashman, TeamB C++ Builder http://www.temporaldoorway.com/programming/index.htm C++ Builder, JBuilder programming information Home of The C++ Builder Programmer's Webring - Join us! ------
Re: problem exception handling on midas server
Author: Jeroen Eikmans
Date: Thu, 05 Oct 2000 00:00
Date: Thu, 05 Oct 2000 00:00
19 lines
1292 bytes
1292 bytes
The exception is still not catched. I think that the exception thrown by the app server is not transported by the MIDAS architecture to the client, because there comes no exception on the client side. Should I use call back functionality ?? "Mark Cashman (TeamB)" <mcashman@temporaldoorway.com> wrote in message news:39DB4B6B.EA805DFD@temporaldoorway.com... > Try a catch (Exception &VCLException) instead of catch(...) > > ------ > Mark Cashman, TeamB C++ Builder > http://www.temporaldoorway.com/programming/index.htm > C++ Builder, JBuilder programming information > Home of The C++ Builder Programmer's Webring - Join us! > ------ > >
Re: problem exception handling on midas server
Author: Steve Pietrykoski
Date: Thu, 05 Oct 2000 00:00
Date: Thu, 05 Oct 2000 00:00
26 lines
1728 bytes
1728 bytes
I have in my projects successfully thrown errors on the server and caught them on the client. In your code you are relying on the return value from the server function. For me, I stepped through the VCL code and found that the return value is ignored. I always return S_OK and I don't catch the exception on the server. Jeroen Eikmans wrote: > > The exception is still not catched. I think that the exception thrown by the > app server is not transported by the MIDAS architecture to the client, > because there comes no exception on the client side. > > Should I use call back functionality ?? > > "Mark Cashman (TeamB)" <mcashman@temporaldoorway.com> wrote in message > news:39DB4B6B.EA805DFD@temporaldoorway.com... > > Try a catch (Exception &VCLException) instead of catch(...) > > > > ------ > > Mark Cashman, TeamB C++ Builder > > http://www.temporaldoorway.com/programming/index.htm > > C++ Builder, JBuilder programming information > > Home of The C++ Builder Programmer's Webring - Join us! > > ------ > > > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads