NullReferenceException while extending PanMapAction class.
最後に公開された状態: April 3, 2018ArcGIS 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)