B
bcpkh
Hello All
Hope someone can help me, please note that at first this might look as
if it is posted to the wrong group but if you ignore the specifics I
think it is general pointer referencing issue.
I am building a plug-in library and is passed, according to the
documentation the following;
'A pointer to the OCI environment handle and server context handle are
supplied via elements zero and one of ociEnvInfo respectively.
Implementations are free to ignore this parameter, and should do so
unless it is intended to use the Oracle connection of the calling
process.'
void init(void *ociEnvInfo )
What I have tried is the following;
OCIEnv *envhp; /*OCI environment handle*/
OCISvcCtx *svchp; /*Server context handle*/
void init(void *ociEnvInfo) {
envhp = (OCIEnv*)ociEnvInfo[0];
svchp = (OCISvcCtx*)ociEnvInfo[1];
}
This compiles fine
but I keep on getting an OCI_INVALID_HANDLE
error which means I am probably not referencing the passed pointers
correctly.
Can someone please point me in the right direction.
Thank you,
B
PS: Running HP-UX on Itanium
Hope someone can help me, please note that at first this might look as
if it is posted to the wrong group but if you ignore the specifics I
think it is general pointer referencing issue.
I am building a plug-in library and is passed, according to the
documentation the following;
'A pointer to the OCI environment handle and server context handle are
supplied via elements zero and one of ociEnvInfo respectively.
Implementations are free to ignore this parameter, and should do so
unless it is intended to use the Oracle connection of the calling
process.'
void init(void *ociEnvInfo )
What I have tried is the following;
OCIEnv *envhp; /*OCI environment handle*/
OCISvcCtx *svchp; /*Server context handle*/
void init(void *ociEnvInfo) {
envhp = (OCIEnv*)ociEnvInfo[0];
svchp = (OCISvcCtx*)ociEnvInfo[1];
}
This compiles fine
error which means I am probably not referencing the passed pointers
correctly.
Can someone please point me in the right direction.
Thank you,
B
PS: Running HP-UX on Itanium