This discussion is archived
0 Replies Latest reply: Mar 14, 2012 6:41 AM by 923813 RSS

problems with oracle::occi::setVectorOfPObjects

923813 Newbie
Currently Being Moderated
Good time of day!
I have a little problem.

I'm using VS 2008 with OCCI 11.2.0.3 and have strange things.

Some part of code:

void LoadData (oracle::occi::Statement *stmt) {
std::vector <oracle::occi::PObject *> table;
oracle::occi::setVectorOfPObjects (stmt, 1, table, L"schema", L"table_type");
}

When this code runs in EXE file, everything works.
When the same code runs in DLL, everything works too until I'll try to add some data in procedure (even not in vector, just in stack). After adding I can catch ORA-22625 or "Access violation (0xC0000005)" in setVectorOfPObjects.

Does anybody known why it can be so?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points