Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic run-time error in arrow.route() (Read 2438 times)
p.hannah
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 38
Joined: Feb 1st, 2006
run-time error in arrow.route()
Apr 7th, 2006 at 1:53am
Print Post  
Details below.

Thanks.

Position of error:





case 2:





grid[ptStart.X - 1, ptStart.Y] = 255; <----------------------






// Pull further if possible





if (ptStart.X + 1 < gridCols && elongate)

-----------

Relevent watches:

-

ptStart
{X = 15 Y = -5}
System.Drawing.Point


IsEmpty
false
bool


X
15
int


Y
-5
int

-

grid
{Dimensions:[200, 113]}
byte[,]
(I can send the contents of this if required...)

-----------

Exception Detail:

System.IndexOutOfRangeException was unhandled
  Message="Index was outside the bounds of the array."
  Source="FlowChart.NET"
  StackTrace:
      at MindFusion.FlowChartX.Arrow.doRoute(Boolean force) in C:\Documents and Settings\Paul\My Documents\SysCAD\GUIs\FlowChart.NET\Arrow.cs:line 3173
      at MindFusion.FlowChartX.Arrow.Route() in C:\Documents and Settings\Paul\My Documents\SysCAD\GUIs\FlowChart.NET\Arrow.cs:line 3018
      at SysCAD.Editor.FrmFlowChart.RouteArrow(Object sender, EventArgs e) in C:\Documents and Settings\Paul\My Documents\SysCAD\GUIs\Editor\FlowChart.cs:line 604
      at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
      at System.Windows.Forms.MenuItem.MenuItemData.Execute()
      at System.Windows.Forms.Command.Invoke()
      at System.Windows.Forms.Command.DispatchID(Int32 id)
      at System.Windows.Forms.Control.WmCommand(Message& m)
      at System.Windows.Forms.Control.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.UnsafeNat
iveMethods.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 SysCAD.Editor.Program.Main() in C:\Documents and Settings\Paul\My Documents\SysCAD\GUIs\Editor\Program.cs:line 17
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: run-time error in arrow.route()
Reply #1 - Apr 7th, 2006 at 10:04am
Print Post  
Ok thank you. Replace the switch there with this version

https://mindfusion.org/_temp/arrow_src.zip

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint