Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Seg Fault on OCIEnvCreate with mode:OCI_SHARED
Are you passing the envh pointer correctly? Here's an example for Oracle
Programmers Ref. 9i
ub4 mode = OCI_SHARED | OCI_THREADED;
OCIEnvCreate (&envhp, mode, (CONST dvoid *)0, 0, 0, 0, (size_t)0 (dvoid **)0);
-- ----------------------------------------------------------------- Amit Jindal, Development Engineer Want ease of development or performance? Why not get both! http://www.roguewave.com/products/sourcepro/db/ Turbo charge any C/C++ apps - without changing code! http://www.roguewave.com/ATSevan01 [Disclaimer: All views expressed here are my personal views and they can be incorrect at times] ----------------------------------------------------------------- "Franck Renger" <franck.renger_at_nokia.com> wrote in message news:E66ra.33855$ws6.680347_at_news2.nokia.com...Received on Mon Apr 28 2003 - 18:13:19 CDT
> Hi,
>
>
> I am trying to Init my OCI environment with modes: THREADED and SHARED,
> using the folowing call:
> +++++++++++++++++++++++++++++++++++++++++++++
> main()
> {
>
> ub4 mode = OCI_SHARED | OCI_THREADED;
> rc = OCIInitialize (mode, 0, 0, 0, 0);
> }
> +++++++++++++++++++++++++++++++++++++++++++++
>
> I get a Segv Fault from this call. If I remove the flag OCI_SHARED, it
works
> fine.
> Did I miss something to init in Shared Mode ?
> N.B: I also try via OCIEnvCreate(), getting the same Segv results...
>
> Thanks
> Franck
>
>
>