Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Urgent help on using OCCI in Linux.
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
![]() |
![]() |