OCI newbie: can't close a cursor

From: Andy <morran_at_ncs.com>
Date: Mon, 24 Aug 1998 16:47:56 -0500
Message-ID: <35E1DF8C.2337_at_ncs.com>



I am trying to write a C++ API for working with Oracle's OCI functions. The idea is to write a C++ class that only a few people need to understand and the rest of the people I work with don't.

My environment:

        AIX 4.2
        Oracle 7.3.2
        IBM's C SET ++

I started with the cdemo6.cc source code, and have made some minor changes so that it will access tables that I actually have as opposed to those coded into it.

My code works fine until I try to exit the program. At the point it tries to call oclose to close the cursor I get a MemoryFault and core dump. When I use dbx to try to see what is what it tells me the following.

Segmentation fault in kpudcx at 0x10005e18

Doing a where in dbx gives me this.

kpudcx(??, ??) at 0x10005e18
kpudc(??, ??) at 0x10005d64
upicls(0x2ff22a74, 0x1, 0x10, 0x4, 0x0, 0x60000000, 0x6000557c, 0x0) at 0x100053cc
ociclo(??) at 0x100032f8
close()(0x2ff22b88), line 293 in "oraapi.cpp" ~AOraCursor()(0x2ff22b88, 0x2), line 210 in "oraapi.cpp" main(), line 150 in "oratest.cpp"

Note that the code that is blowing is down in the libraries. I don't have the source fo that to debug my program, assuming it a problem with my program.

Does anyone have any ideas or thoughts that could help with this problem?

Thanks. Received on Mon Aug 24 1998 - 23:47:56 CEST

Original text of this message