laptop and a wrench

Bug

NullReferenceException while extending PanMapAction class.

Last Published: April 3, 2018 ArcGIS Runtime for Windows Mobile
Bug ID Number NIM046947
SubmittedJuly 21, 2009
Last ModifiedApril 28, 2025
Applies toArcGIS Runtime for Windows Mobile
Version found9.3.1
Program languageC#
StatusWill Not Be Addressed

Additional Information

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)

Steps to Reproduce

Bug ID: NIM046947

Software:

  • ArcGIS Runtime for Windows Mobile

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options