I often encounter the following exception when selecting or dragging DiagramItems (hard to reproduce exactly). It causes my application to crash. Version:2.1.1.23367
Exception: System.InvalidOperationException:Failed to compare two elements in the array.
StackTrace: at System.Array.SorterObjectArray.SwapIfGreaterWithItems(Int32 a, Int32 b) at System.Array.SorterObjectArray.QuickSort(Int32 left, Int32 right) at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer) at System.Collections.ArrayList.Sort(Int32 index, Int32 count, IComparer comparer) at MindFusion.Diagramming.Wpf.x2965d493a804ca6b.x3ae2538770cbf5a5(Int32 x7f8a886f51b477eb) at MindFusion.Diagramming.Wpf.Diagram.x3ae2538770cbf5a5(Int32 x7f8a886f51b477eb) at MindFusion.Diagramming.Wpf.Diagram.x3ae2538770cbf5a5() at MindFusion.Diagramming.Wpf.Diagram.ArrangeOverride(Size finalSize) at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect) at System.Windows.UIElement.Arrange(Rect finalRect) at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
InnerException: [System.NullReferenceException] = {"Object reference not set to an instance of an object."}
StackTrace: at MindFusion.Diagramming.Wpf.Diagram.GetDiagramItem(UIElement item) at MindFusion.Diagramming.Wpf.xddab178229d7219f.x7aeaf17dbdd7799a(Object x08db3aeabb253cb1, Object x1e218ceaee1bb583) at MindFusion.Diagramming.Wpf.xddab178229d7219f.xd2b26c831a48c764(DiagramItem xde860fba55c41d76, DiagramNode xb6a159a84cb992d6) at MindFusion.Diagramming.Wpf.xddab178229d7219f.x7aeaf17dbdd7799a(Object x08db3aeabb253cb1, Object x1e218ceaee1bb583) at MindFusion.Diagramming.Wpf.xddab178229d7219f.Compare(Object x, Object y) at System.Array.SorterObjectArray.SwapIfGreaterWithItems(Int32 a, Int32 b)
|