ArgumentOutOfRangeException when reordering layers while other layers are loading

3933
11
06-03-2016 09:02 AM
carloscasanova
New Contributor III

When reordering layers, even those that are not the ones loading, it is possible to hit this exception. Note that the spatial reference was already set on the map view. Sample callstack:

at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)

  at System.Collections.Generic.List`1.Insert(Int32 index, T item)

  at Esri.ArcGISRuntime.Controls.CoreLayerCollection.MoveLayer(Layer layer)

  at Esri.ArcGISRuntime.Controls.ViewBase.HandleLayersMoved(CoreLayerCollection layerManager, IEnumerable`1 movedLayers)

  at Esri.ArcGISRuntime.Controls.ViewBase.<OnLayersChanged>d__1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at Esri.ArcGISRuntime.Controls.ViewBase.<OnLayerCollectionChanged>d__41.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)

  at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

  at System.Windows.Threading.DispatcherOperation.InvokeImpl()

11 Replies
JonDicken
New Contributor II

Hi Mike,

This issue is still preventing us from moving to 10.2.7. Is there a route for raising this as a bug/fix request?

Regards,

Jon

0 Kudos
JonDicken
New Contributor II

Hi,

This thread appears to have gone very quiet. Is this forum still actively being monitored by ESRI staff? 

Regards,

Jon

0 Kudos