Select to view content in your preferred language

gp.Exists Cause Crash of the ArcMap

2385
2
01-18-2016 11:46 AM
StanislavŠťastný
New Contributor

Hello,

I've weird problem with this geoprocessing function. I've discovered that it sometimes cause crash of the ArcMap. I use this function to check existence of rasters in FILE geodatabase. Crash never cause any error message. After crash - the ArcMap is failed and closed. This situation comes unpredictebly (aprox. 5% chance for crash). When I don't use this function, my app works well.

If gp.Exists(Path, Nothing) = True Then

                        Return True

                    Else

                        Return False

                    End If

Do you know why this is happening or could you help me how to avoid this situation? Thanks a lot!

Stan

0 Kudos
2 Replies
by Anonymous User
Not applicable

We have the same random crash problem with the gp.exists function (ArcMap 10.4.1, arcobjects, c#).  The changes for a crash are 50%. We use(d) the function to check for feature classes within a file geodatabase.

The annoying thing is that the crash does not leave any message, even during debugging within Visual Studio 2015.

0 Kudos
YuanLiu
Deactivated User

I noticed there is already an bug being logged for this issue as NIM053866 IGeoProcessor.Exists method causes application crash when used with specific data (NIM053866: IGeoProcessor.Exists method causes application crash.. ). But based on some internal notes, our developers seem to have difficulties to reproduce it in house in order to investigate it. It would be much appreciated if you could contact Esri Support Services and provide an reproducible sample for this issue. 

0 Kudos