The diagram I was laying out was previously in an AnnealLayout with Striaght / Dynamic Links with no joints in them.
System.ArgumentOutOfRangeException was unhandled
Message="Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"
Source="mscorlib"
ParamName="index"
StackTrace:
at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at MindFusion.Diagramming.PointCollection.get_Item(Int32 index)
at MindFusion.Diagramming.DiagramLink.x5fcd47acc4164137()
at MindFusion.Diagramming.DiagramLink.xd433eaf1292c9575()
at MindFusion.Diagramming.DiagramLink.x0d5905a18dc24aa7(Boolean x1c5ff8c3c1ac16ad)
at MindFusion.Diagramming.DiagramLink.UpdateFromPoints(Boolean updateGroups, Boolean updateSegmentCount)
at MindFusion.Diagramming.DiagramLink.UpdateFromPoints(Boolean updateGroups)
at MindFusion.Diagramming.DiagramLink.UpdateFromPoints()
at MindFusion.Diagramming.Layout.x3462aa19b03aac15.xe47b2712dbae7a09()
at MindFusion.Diagramming.Layout.x3462aa19b03aac15.x0360c0152e0fc04b(ArrayList x6fa2570084b2ad39)
at MindFusion.Layout.x0bd7aa907b5c2ae1.xa80296b5ce0aad9d(x82e1bd820ac7ff15 x9fc3ee03a439f6f0, ArrayList xd9cc9787b074c77c)
at MindFusion.Layout.x0bd7aa907b5c2ae1.x96f3a1e179e5157d(x82e1bd820ac7ff15 x9fc3ee03a439f6f0, Single xd4d7bd59bc0483e3)
at MindFusion.Layout.xabd66bcda3e8fc57.x8d75079465097c70(x0bd7aa907b5c2ae1 x6b631e0009a9deea, Boolean x4c8d8e849653d454, x01a1fee0f328037a xf4336cad79ab23b5)
at MindFusion.Layout.xabd66bcda3e8fc57.x0bd7aa907b5c2ae1(Boolean x4c8d8e849653d454)
at MindFusion.Diagramming.Layout.FlowLayout.BendLinks(Diagram diagram)
at MindFusion.Diagramming.Layout.FlowLayout.x91cb73cecf8b5941(Diagram x8b62359f01cfd806)
at MindFusion.Diagramming.Layout.FlowLayout.Arrange(Diagram diagram, DiagramItemCollection items, RectangleF[] laneBorders)
at MindFusion.Diagramming.Layout.FlowLayout.Arrange(Diagram diagram, DiagramItemCollection items)
at MindFusion.Diagramming.Layout.Layout.Arrange(Diagram diagram)
at FlowVisualiser.FlowVisualiser.LayoutAllItems() in C:\Perforce\f1branches\dev\dev1\programming\tools\fe\FlowVisualiser\FlowVisualiser.cs:line 1213
at FlowVisualiser.FlowVisualiser.LayoutFlowDiagram() in C:\Perforce\f1branches\dev\dev1\programming\tools\fe\FlowVisualiser\FlowVisualiser.cs:line 1240
at FlowVisualiser.FlowVisualiser.applyToolStripMenuItem1_Click(Object sender, EventArgs e) in C:\Perforce\f1branches\dev\dev1\programming\tools\fe\FlowVisualiser\FlowVisualiser.cs:line 1533
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at FlowVisualiser.Program.Main() in C:\Perforce\f1branches\dev\dev1\programming\tools\fe\FlowVisualiser\Program.cs:line 17
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()