AnsweredAssumed Answered

I'm getting a new error calling GraphicsOverlay.Graphics.Add(graphic): "Cannot call this method in this context: Graphic already has an assigned id."

Question asked by Pscovis on Nov 29, 2016
Latest reply on Feb 15, 2017 by MBranscomb-esristaff

This call fails intermittently, and I can't figure out why.  

Graphic is newly created in the same method; I'm definitely not adding a graphic multiple times.

 

Stack Trace:

at Esri.ArcGISRuntime.ArcGISException.HandleCoreError(CoreError error, Boolean throwException)
at RuntimeCoreNet.GeneratedWrappers.Interop.CheckError(IntPtr errorHandle, Boolean throwOnFailure, GCHandle wrapperHandle)
at RuntimeCoreNet.GeneratedWrappers.CoreVector.Insert(Int64 position, CoreElement value)
at Esri.ArcGISRuntime.RuntimeCollection`1.InsertItem(Int32 index, T item)
at Esri.ArcGISRuntime.RuntimeObservableCollection`1.InsertItem(Int32 index, T item)
at Infor.Mobile.Core.WRT.Windows.UI.Mapping.EsriMap.AddMarkerInternal(IMapMarker marker)

Outcomes