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 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项