ExecutionEngineException due to getting SpatialReference parameters

369
0
11-30-2021 10:57 PM
osmansheikh
New Contributor

We developed an ArcGIS .NET extension. The input datasets are a polygon and a raster layer. At first, we check the Spatial Reference of the layers. If the Spatial References are different, we show the Spatial Reference parameter values comparison to the user. The tool works fine. But the problem is when the raster layer has a vertical projection and we run it in ArcGIS 10.8, Execution Engine Exception occurs. Consequences, the ArcMap crashes. 

We observe if we don't retrieve the Spatial Reference parameter values, no exception occurs. We also observe that when the raster file is located into a File Geodatabase, ArcMap crashes most of the time, whereas when it is in a folder, it crashes the first time.

I have attached here the sample code project and the sample dataset.

0 Kudos
0 Replies