laptop and a wrench

Bug

NullReferenceException while extending PanMapAction class.

Zuletzt veröffentlicht: April 3, 2018 ArcGIS Runtime for Windows Mobile
Bug-ID-Nummer NIM046947
EingereichtJuly 21, 2009
Zuletzt geändertApril 28, 2025
Gilt fürArcGIS Runtime for Windows Mobile
Gefunden in Version9.3.1
ProgrammspracheC#
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

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)

Schritte zur Reproduzierung

Bug-ID: NIM046947

Software:

  • ArcGIS Runtime for Windows Mobile

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln