🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
1 messages
1 total messages Started by Bill Wed, 07 Nov 2001 04:18
How to catch the exceptions that occured in the app server?
#462
Author: Bill
Date: Wed, 07 Nov 2001 04:18
37 lines
1632 bytes
I defined the method GetAllTables through Type Library and if it occurs
exceptions I want to throw them to the client.
In the app server the code like this:
STDMETHODIMP TrdmBCBPubsImpl::GetAllTables(TVariant* vTables)
{
   try
   {
       //...
   }
   catch(...)
   {
      throw;
   }
}
If exceptions occured in the app server it throws.


In the client the code is:
   TCOMItestDCOM Server;
   Server = CotestDCOM::CreateRemote(WideString("server_name"));
   try

   {

      Server->GetAllTables(...);

   }

   catch(EOleException &E)

   {

      ShowMessage(E.Message);

   }

But the exception occured in the app server couldn't be cought.
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