AnsweredAssumed Answered

gp.Exists Cause Crash of the ArcMap

Question asked by stanislav.stastny on Jan 18, 2016
Latest reply on Sep 16, 2016 by YLiu-esristaff

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

Outcomes