Home » Developer & Programmer » Precompilers, OCI & OCCI » Stack Trace Error - OCCI
Stack Trace Error - OCCI [message #181677] Tue, 11 July 2006 02:05 Go to next message
vasanth77
Messages: 1
Registered: July 2006
Location: Chennai
Junior Member
Hi,
We have written a multi-threaded program in C++. Also Using OCCI to interact with Oracle. We have a cursor returning collection of objects.

The connection is established using the following:
Environment::createEnvironment(Environment::Mode(Environment::OBJECT|Environment::THREADED_MUTEXED));

When we run this in a single thread, it is perfectly working fine. But when we run it in the multiple thread it is giving
Stack Trace Error and dump core.

When we debug this using dbx, the problem is in the following line

while (ResultSet::DATA_AVAILABLE == rs->next() )

Could anyone please help us to fix this issue?

Thanks & Regards,
Vasanth



Re: Stack Trace Error - OCCI [message #189522 is a reply to message #181677] Fri, 25 August 2006 00:29 Go to previous message
kmohan
Messages: 28
Registered: July 2005
Junior Member
What objects are you sharing across threads? You cannot share statement and resultset objects. Please go through this.
http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14294/performance.htm#sthref784

You should always specify the software version and OS you are using. It will help others to suggest solutions.
Previous Topic: USE OF LIKE IN OCCI Statement String
Next Topic: some problems of occi9 (code)
Goto Forum:
  


Current Time: Sat Dec 10 16:40:38 CST 2016

Total time taken to generate the page: 0.06512 seconds