laptop and a wrench

不具合

'Open map URL' sample with a custom implementation of the OnMapsClicked method crashes and returns the error message, "Exception Unhandled System.ObjectDisposedException: 'Cannot access a disposed object. Object name: 'MapView'.'" after locking and unlocking the device.

最後に公開された状態: December 24, 2020 ArcGIS Runtime SDK
不具合 ID 番号 BUG-000136140
送信されましたDecember 14, 2020
最終更新日July 5, 2025
適用対象ArcGIS Runtime SDK
見つかったバージョン100.9
オペレーティング システムApple iOS
オペレーティング システムのバージョン12.0x
修正されたバージョン100.11
ステータスFixed

対処法

Use a custom renderer for MapView. Refer to: https://community.esri.com/t5/arcgis-runtime-sdk-for-net/mapview-objectdisposedexception-ios/m-p/668849#M8426. 

[assembly: ExportRenderer(typeof(Esri.ArcGISRuntime.Xamarin.Forms.MapView), typeof(MyMapViewRenderer))]

namespace xxx.Forms.iOS

{

public class MyMapViewRenderer : MapViewRenderer 

{

protected override bool ManageNativeControlLifetime => false;

}

}

再現の手順

不具合 ID: BUG-000136140

ソフトウェア:

  • ArcGIS Runtime SDK

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動