Hello, I'm starting to be desperate because I'm facing an exception that I can't find a cause for. It is so non-deterministic that I can't even provide you an example. From what I found this exception is somehow related to diagram links, maybe routing of links. What I got is this stack trace:
System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'
This exception was originally thrown at this call stack: A.QV.NR(System.Windows.Rect, MindFusion.Diagramming.Wpf.DiagramLink, int, int, MindFusion.Diagramming.Wpf.DiagramItemCollection) A.QV.RR(int, int, System.Windows.Rect, MindFusion.Diagramming.Wpf.DiagramLink, MindFusion.Diagramming.Wpf.DiagramItemCollection) MindFusion.Diagramming.Wpf.DiagramLink.IH(MindFusion.Diagramming.Wpf.ConnectionP oint, System.Windows.Point, MindFusion.Diagramming.Wpf.ConnectionPoint, System.Windows.Point, bool, MindFusion.Diagramming.Wpf.DiagramItemCollection, A.QV) MindFusion.Diagramming.Wpf.DiagramLink.LV(bool, MindFusion.Diagramming.Wpf.ConnectionPoint, MindFusion.Diagramming.Wpf.ConnectionPoint, bool, MindFusion.Diagramming.Wpf.DiagramItemCollection) MindFusion.Diagramming.Wpf.DiagramLink.LV() MindFusion.Diagramming.Wpf.DiagramLink.Origin.set(MindFusion.Diagramming.Wpf.Dia gramNode)
This is thrown when I set a node from Diagram nodes as an origin of a link. A funny thing is when I have two graphs and I open the first one that is without issue, then I can open the second one with no problem. But when I open second one as first, it crashes. If I remove all links everything is fine.
It really depends on nodes position because when I create a graph and apply layout then reopen it, it crashes. When I do the same but before reopening it I change one node's position, it is reopened successfully.
I'm just asking if you don't know what can be the cause or what to focus on.
Thanks for any advice Jan
|