laptop and a wrench

Bogue

'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.

Dernière publication: December 24, 2020 ArcGIS Runtime SDK
Numéro d’ID de bogue BUG-000136140
EnvoiDecember 14, 2020
Dernière modificationJuly 5, 2025
S’applique àArcGIS Runtime SDK
Version trouvée100.9
Système d’exploitationApple iOS
Version du système d’exploitation12.0x
Version de correction100.11
StatutFixed

Solution de contournement

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;

}

}

Étapes pour reproduire

ID de bogue: BUG-000136140

Logiciel:

  • ArcGIS Runtime SDK

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement