Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OCIStmtExecute memory problems

Status
Not open for further replies.

arianne2010

Programmer
Sep 22, 2010
3
ES
We are experiencing a large consume of memory in WinXP with our OCI (Oracle libraries) code when OCIStmtExecute() returns a controlled error.
The code is written in Visual C++ and we are using Oracle Server release 10.2.0.3 and Oracle Client release 9.2.0.1.0.

We don't have detect any performance problems when we inserts massive data (thousand of records) without errors.

This is an example of how we use OCIStmtExecute():
Code:
if ( (status = OCIStmtExecute(svchp, stmthp1, errhp1, 1, 0, 0, 0, 0)) && status != 1)
{
OCITransRollback(svchp, errhp1, (ub4) 0);
if (stmthp1) OCIHandleFree((dvoid *) stmthp1, OCI_HTYPE_STMT);
if (errhp1) OCIHandleFree((dvoid *)errhp1, (ub4)OCI_HTYPE_ERROR);
return FALSE;
}
Did anybody met this problem?
Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top