Page 1 of 1

"Cannot convert type to Array" error in DLL

Posted: Wed 23 May 2012 14:36
Helo.

ODAC v6.9.0 d10pro+BDS2006+WinXP

My code:

TOraObject *OraGeometry;
TOraArray *OraInf;

InitOCI();
OraGeometry = qQuery->GetObject( geomColumn );
int gtype = OraGeometry->AttrAsInteger["sdo_gtype"];

OraInf = OraGeometry->AttrAsArray["sdo_elem_info"]; <-- Error

During executing that code, I have got this error: "Cannot convert type to Array".
Compilation is ok. When I compile this code to standard exe file - everything works fine. The error appears only when I compile to DLL file.

Please tell me what I'm doing wrong.

Re: "Cannot convert type to Array" error in DLL

Posted: Wed 23 May 2012 15:41
by AlexP
Hello,

We cannot reproduce the problem.
Please send the DLL projects and applications demonstrating the problem to alexp*devart*com.
P.S. Besides, you are using an out-of-date ODAC version. Try reproducing the problem with the latest version 8.1.6