Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> PThreads/Oracle/OCI/Solaris/G++
I am working on an application using G++, PTHREADS and OCI on Solaris.
The only direct dynamic memory callls in the application new and
deletes of the thread objects themselves.
After a thread completes its task, the startup function deletes it.
The application crashes consistently either in a thread constructor or a thread destructor and it always crashes while executing an OCI call.
_malloc_unlocked
t_splay/t_delete/realfree
Usually in an OCIServerDetach or while allocating a handle.
The OCICreateEnvironment has OCI_THREADED as its second parameter (all after null).
The link options are
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -lnsl -lpthread
-lposix4 -lclntsh -lsocket
What have I omitted to get this running correctly? I suspect the problem is build related.
Thanks
BG Received on Fri Jan 26 2007 - 12:27:00 CST
![]() |
![]() |