laptop and a wrench

Error

NullReferenceException while extending PanMapAction class.

Última publicación: April 3, 2018 ArcGIS Runtime for Windows Mobile
Número de ID del error NIM046947
EnviadoJuly 21, 2009
Última modificaciónApril 28, 2025
Relacionado conArcGIS Runtime for Windows Mobile
Versión encontrada9.3.1
Lenguaje del programaC#
EstadoWill Not Be Addressed

Información adicional

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.

Solución alternativa

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)

Pasos para reproducir

ID del error: NIM046947

Software:

  • ArcGIS Runtime for Windows Mobile

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga