🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #962

problem exception handling on midas server

#962
From: Jeroen Eikmans
Date: Wed, 04 Oct 2000 00:00
46 lines
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
Technical Details
Message-ID: <39daf73e$1_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,a6431034b6bf82f9,start
X-Google-Attributes: gidfcd2b,public
From: "Jeroen Eikmans" <office@pulse-experts.nl>
Subject: problem exception handling on midas server
Date: 2000/10/04
Message-ID: <39daf73e$1_2@dnews>
X-Deja-AN: 677384997
X-Trace: 4 Oct 2000 02:24:14 -0800, 195.109.246.154
Organization: Pulse Automation Experts bv
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.cppbuilder.database.multi-tier
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700