laptop and a wrench

Bogue

ArcMap crashes while debugging Add-ins.

Dernière publication: August 25, 2014 ArcGIS for Desktop
Numéro d’ID de bogue NIM061526
EnvoiSeptember 27, 2010
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.0
Langue du programmeVB.Net
Système d’exploitationWindows OS
Version du système d’exploitation2008
StatutWill Not Be Addressed

Informations supplémentaires

No Public Explanation

Solution de contournement

Putting the code inside Try-Catch block does not cause the ArcMap to crash.User replied that the workaround does not work for him. Sometimes Arc Map crashes even if we put the code inside Try-Catch block.User’s comments:“I reported, as an alternate solution, that putting the code inside Try-Catchblock can avoid the ArcMap crashing while debugging.However, some code does make it crash even if it's inside Try-Catch block.Please try to debug the attached solution file, add the Add-in button called"Test_Exception" from "Add-in Controls" category, and run it. An exceptionoccurs at the first line inside Try-Catch, and Arc Map will crash.”From Steve Van Esch:The Try Catch code is incorrect, the Catch is explicity being set to trap only COM exceptions, in my case I was getting an index out of bounds exception. Not qualifyingthe Catch will allow it to trap all exceptions. Catch End Try

Étapes pour reproduire

ID de bogue: NIM061526

Logiciel:

  • ArcGIS for Desktop

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement