laptop and a wrench

漏洞

NullReferenceException while extending PanMapAction class.

上次发布: April 3, 2018 ArcGIS Runtime for Windows Mobile
漏洞 ID 编号 NIM046947
已提交July 21, 2009
上次修改时间April 28, 2025
适用范围ArcGIS Runtime for Windows Mobile
找到的版本9.3.1
编程语言C#
状态Will Not Be Addressed

附加信息

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.

解决办法

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)

重现步骤

漏洞 ID: NIM046947

软件:

  • ArcGIS Runtime for Windows Mobile

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项