TOraQuery->GetObject ("ObjectName") fails with Invalid Attribute Name Exception
Posted: Thu 19 Mar 2015 16:11
Hi Folks,
we have migrated our Project from XE to XE6 C++ Builder and updated to the ODAC Version 9.4.12.
Since this migration (without any code-changes) we get the Problem that the following code throws sometimes a "Invalid Attribute Name"-Exception:
Randomly this code throws or works! Some times it works, and some times not!
The Problem seems to be the first LOC, due the TOraObject is not correctly getted!
The TOraQuery is properly initialized and ObjectView = true.
Is there a known issue concerning this Problem - is there a Workaround?
Or are there newer techniques to get an Object from a TOraQuery?
Thanks for your help!
we have migrated our Project from XE to XE6 C++ Builder and updated to the ODAC Version 9.4.12.
Since this migration (without any code-changes) we get the Problem that the following code throws sometimes a "Invalid Attribute Name"-Exception:
Code: Select all
TOraObject* sdoGeometry = TOraQuery->GetObject ("SHAPE");
MSdoGeomType sdoGtype = sdoGeometry->AttrAsInteger["SDO_GTYPE"]; //Exception here
The Problem seems to be the first LOC, due the TOraObject is not correctly getted!
The TOraQuery is properly initialized and ObjectView = true.
Is there a known issue concerning this Problem - is there a Workaround?
Or are there newer techniques to get an Object from a TOraQuery?
Thanks for your help!