Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2328

ArcGIS runtime errors after upgrading from Delphi 2007 to Delphi XE3

$
0
0
We have an application written in Delphi Pascal that accesses the ArcGIS 9.3 API through the COM interface. We recently upgraded from Delphi 2007 to Delphi XE3 and ever since we upgraded we have been getting runtime errors in the ArcGIS libraries that we were not getting before.

Specifically the error is always "invalid floating point operation".

The first one that was occurring was happening in the method "sg.SgCoordRefSetZ". I understand that this method is part of the SDE code. I was able to eliminate this error by adding a call to FGeoSpatialReference.SetZDomain(-10000, 100000.0) even though there is nowhere that we're using Z coordinates.

The second one I found was caused by adding features to a feature class without a geometry defined. For that I simply tested for an empty geometry and didn't add the feature if the geometry was nil.

I have a new one that's occurring in the same bit of code as the first one (i.e. "sg.SgCoordRefSetZ") but it happens when I call FMapControl.LoadMxFile(MapDocumentFileName); There is no way I can trace this.

The confusing part, and my question, is why are these errors happening after upgrading Delphi from 2007 to XE3 and not before.

I'm writing this out of frustration and desperation, so if I come across as being frustrated or desperate, that's why.

Viewing all articles
Browse latest Browse all 2328

Trending Articles