Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: OCI and C++ Exceptions
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
![]() |
![]() |