laptop and a wrench

Bogue

Specifying the enableDynamicLayers argument of LocalMapService.GetServiceAsync() causes exception of type 'System.StackOverflowException'.

Dernière publication: August 25, 2014 ArcGIS Runtime SDK
Numéro d’ID de bogue NIM077609
EnvoiJanuary 27, 2012
Dernière modificationJune 5, 2024
S’applique àArcGIS Runtime SDK
Version trouvée10.1 Beta 1
Langue du programmeC#
Système d’exploitationWindows OS
Version du système d’exploitation7 64 Bit
Version de correction10.1
StatutFixed

Solution de contournement

//********************* Try below code instead ************************* //********************************************************************** LocalMapService localMapService = new LocalMapService() { Path = @"...\Debug\DE_PLZ_5.mpk", MaxRecords = 9000, EnableDynamicLayers = true }; localMapService.StartAsync(delegateLocalService => { ArcGISLocalDynamicMapServiceLayer _arcGISLocalDynamicMapServiceLayer = new ArcGISLocalDynamicMapServiceLayer() { Service = localMapService, ID = "_arcGISLocalDynamicMapServiceLayer" }; _mapControl.Layers.Add(_arcGISLocalDynamicMapServiceLayer); }); //********************************************************************** //**********************************************************************

Étapes pour reproduire

ID de bogue: NIM077609

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