Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: OCI and C++ Exceptions

Re: OCI and C++ Exceptions

From: John Hatcher <jhatcher_at_uk.oracle.com>
Date: Wed, 21 Apr 1999 12:57:37 +0100
Message-ID: <7fkejn$44m$1@inet16.us.oracle.com>


Hi,

Can't verify that particular platform, but it works fine on NT (OCI : 8.0.4).

John.

Merrill Lynch wrote in message <01be8bd0$ddd7d300$261cf3a9_at_loniw50189>...
>I'm using the OCI libraries on Solaris to call into an Oracle 7.3.3 server
>running on OpenVMS.
>Everything works fine until any of my code throws a C++ exception. The
>code refuses to handle the exception when the executable is linked to the
>OCI libraries.
>
>I've reduced the code to replicate the problem to the following:
>
>#include <iostream.h>
>
>int main(int, char**)
>{
> try
> {
> cout << "Throwing..." << endl;
> throw 1;
> }
> catch(...)
> {
> cout << "...caught!" << endl;
> }
> return 0;
>}
>
>When I build this without linking to the OCI libraries I works fine, i.e.
>
>Throwing...
>...caught!
>
>But when I link to the OCI libraries it aborts with an unhandled exception.
>
>Has anyone got any ideas?
>
>Simon.
Received on Wed Apr 21 1999 - 06:57:37 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US