"Cannot convert type to Array" error in DLL

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
[email protected]
Posts: 27
Joined: Fri 12 Feb 2010 07:44

"Cannot convert type to Array" error in DLL

Post by [email protected] » 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.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

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

Post by AlexP » Wed 23 May 2012 15:41

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

Post Reply