laptop and a wrench

Bogue

NullReferenceException while extending PanMapAction class.

Dernière publication: April 3, 2018 ArcGIS Runtime for Windows Mobile
Numéro d’ID de bogue NIM046947
EnvoiJuly 21, 2009
Dernière modificationApril 28, 2025
S’applique àArcGIS Runtime for Windows Mobile
Version trouvée9.3.1
Langue du programmeC#
StatutWill Not Be Addressed

Informations supplémentaires

On July 1, 2017 Esri retired the ArcGIS for Windows Mobile product and we encourage customers to migrate mobile field editing projects to Collector for ArcGIS app or another ArcGIS App available at http://www.esri.com/software/apps.

Solution de contournement

1) Extend MapAction class instead. The following supresses the exception: 2) Override the OnActiveChanging function for the PanMapAction class. In MyPan.cs, enter the following piece of code (or uncomment the block): protected override void OnActiveChanging(bool active) { try { //base.OnActiveChanging(active); } catch (Exception ex) { System.Diagnostics.Debug.Write(ex.StackTrace.ToString()); } } Note: Uncommenting the line: base.OnActiveChanging(active); will cause similar exception: A first chance exception of type 'System.NullReferenceException' occurred in System.Windows.Forms.dll at System.Windows.Forms.Cursor..ctor(Stream stream) at ESRI.ArcGIS.Mobile.MapActions.PanMapAction.OnActiveChanging(Boolean active)

Étapes pour reproduire

ID de bogue: NIM046947

Logiciel:

  • ArcGIS Runtime for Windows Mobile

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