laptop and a wrench

Erro

NullReferenceException while extending PanMapAction class.

Última Publicação: April 3, 2018 ArcGIS Runtime for Windows Mobile
Número de ID do Erro NIM046947
EnviadoJuly 21, 2009
Última ModificaçãoApril 28, 2025
Aplica-se àArcGIS Runtime for Windows Mobile
Versão encontrada9.3.1
Idioma do programaC#
StatusWill Not Be Addressed

Informações Adicionais

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.

Solução Provisória

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)

Etapas para Reproduzir

ID do Erro: NIM046947

Software:

  • ArcGIS Runtime for Windows Mobile

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download