OCI-21522, AllocObject in DLL
Posted: Mon 09 Nov 2015 03:45
I'm passing Oracle session connect to DLL from EXE.
In DLL:
And use it, such as:
On the third line, when called AllocObject, there is an error OCI-21522.
ODAC 9.6.20, XE5
How to solve this problem properly, to use Oracle objects in the session transmitted to DLL from EXE?
In DLL:
Code: Select all
DLLOraSession := TOraSession.Create(Self);
// "ACtx" is EXEOraSession.OCISvcCtx.hOCISvcCtx
DLLOraSession.AssignSvcCtx(ACtx);
DLLOraStoredProc.Session := DLLOraSession;
Code: Select all
DLLOraStoredProc.ParamByName('INPUT_LIST_ID').DataType := ftArray;
DLLOraStoredProc.ParamByName('INPUT_LIST_ID').AsArray.OCISvcCtx := DLLOraStoredProc.Session.OCISvcCtx;
DLLOraStoredProc.ParamByName('INPUT_LIST_ID').AsArray.AllocObject('ORA_SHEMA.LIST_ID');
ODAC 9.6.20, XE5
How to solve this problem properly, to use Oracle objects in the session transmitted to DLL from EXE?