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: Urgent help on using OCCI in Linux.

Re: Urgent help on using OCCI in Linux.

From: Mathias Waack <M.Waack_at_gmx.de>
Date: Fri, 04 Aug 2006 06:09:43 GMT
Message-ID: <HwBAg.29$TO.882@se2-cb104-9.zrh1.ch.colt.net>


dragon_num_one wrote:

> Hello there,
>
> I am in urgent need to solve the following problem regarding use Oracle
> OCCI under Linux.
>
> Could someone help me to solve this problem? Is OCCI so difficult to use?
>
> the crash is caused by using getString(). If I commented out the second
> and third printf(), the program will be having no problem.
>
> while (rs->next())
> {
> printf("Book ID = %d\n", rs->getInt(1) );
> printf("Title = %s\n", rs->getString(2).c_str()
> );
> printf("Auther = %s\n", rs->getString(3).c_str()
> );
> printf("Price = %d\n", rs->getInt(4) );
> }

The usual question in a c++ forum would be: please post a minimal complete program showing this error. Otherwise try tools like valgrind, maybe it finds the source for the segfault...

Mathias Received on Fri Aug 04 2006 - 01:09:43 CDT

Original text of this message

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