Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram crashes when I move nodes (Read 3412 times)
abereznyi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 22nd, 2010
Diagram crashes when I move nodes
Mar 18th, 2010 at 12:17am
Print Post  
I get this error fairly often (which crashes my application in  IE ) :

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at MindFusion.Diagramming.Silverlight.DiagramLink.x20a40110beaa19ac()
   at MindFusion.Diagramming.Silverlight.DiagramLink.xd433eaf1292c9575()
   at MindFusion.Diagramming.Silverlight.DiagramLink.x0d5905a18dc24aa7(Boolean x1c5ff8c3c1ac16ad, Boolean x3fb3e092835b21ba)
   at MindFusion.Diagramming.Silverlight.DiagramLink.UpdateFromPoints(Boolean updateGroups)
   at MindFusion.Diagramming.Silverlight.DiagramLink.x0360c0152e0fc04b(LinkStyle x0f5cfbc079a382b1, List`1 xd953692bb6c6ee02)
   at MindFusion.Diagramming.Silverlight.QuickRouter.xf4a0df68ccdb18a9(DiagramLink xe9c763083b68a7ee, x89083e7212716e26[] x6fa2570084b2ad39)
   at MindFusion.Diagramming.Silverlight.QuickRouter.RouteLinks(DiagramLinkCollection links)
   at MindFusion.Diagramming.Silverlight.QuickRouter.Resume(Boolean routeDeferredLinks)
   at MindFusion.Diagramming.Silverlight.InteractionState.Commit(Point currentPoint)
   at MindFusion.Diagramming.Silverlight.BehaviorBase.OnMouseUp(MouseButtonEventArgs e)
   at MindFusion.Diagramming.Silverlight.Diagram.x66c89b500bffc63d(Object xe0292b9ed559da7d, MouseButtonEventArgs xfbf34718e704c6bc)
   at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)    


What can be done to fix this problem?
  

&&Thanks,&&Alex
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram crashes when I move nodes
Reply #1 - Mar 18th, 2010 at 8:28am
Print Post  
Could you copy here the link's property values shown in the debugger's watch window when the exception is thrown?
  
Back to top
 
IP Logged
 
abereznyi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 22nd, 2010
Re: Diagram crashes when I move nodes
Reply #2 - Mar 18th, 2010 at 1:39pm
Print Post  
Here are all the link properties set:

           link.AutoRoute = true;
           link.BaseShape = ArrowHead.Circle;
           link.BaseShapeSize = 7;
           link.Dynamic = false;
           link.HeadPen = new Pen(Brushes.Green, 2.0, DashStyles.Solid);
           link.HeadShape = ArrowHead.DoubleArrow;
           link.HeadShapeSize = 7;
           link.IntermediateShape = ArrowHead.Circle;
           link.IntermediateShapeSize = 5;
           link.Style = LinkStyle.Bezier;
           link.Text = "";
           link.TextBrush = Brushes.Blue;
           link.ToolTip = "Link hint here ...";
  

&&Thanks,&&Alex
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram crashes when I move nodes
Reply #3 - Mar 18th, 2010 at 3:34pm
Print Post  
Disable the IntermediateShape for now - it does not work that well with Bezier links. We'll fix this next week.

Stoyan
  
Back to top
 
IP Logged
 
abereznyi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 22nd, 2010
Re: Diagram crashes when I move nodes
Reply #4 - Mar 18th, 2010 at 7:13pm
Print Post  
I found that setting link.AutoRoute = false;
prevents my crashes so far. Which is good for me.

And somehow I don't see the IntermediateShape anymore when I set this.

Is this a 'Feature' or a bug?
  

&&Thanks,&&Alex
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram crashes when I move nodes
Reply #5 - Mar 18th, 2010 at 7:18pm
Print Post  
IntermediateShape is shown for Bezier links only if they have more than one segments, and thus the problem happens when the routing function adds new segments for some more complex paths.
  
Back to top
 
IP Logged
 
abereznyi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 22nd, 2010
Re: Diagram crashes when I move nodes
Reply #6 - Mar 22nd, 2010 at 8:52pm
Print Post  
When it's fixed, how do I get the fix?

I bought the product at ComponentSource.com
  

&&Thanks,&&Alex
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram crashes when I move nodes
Reply #7 - Mar 22nd, 2010 at 9:23pm
Print Post  
Register at http://www.clientsarea.eu/ to get updates.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram crashes when I move nodes
Reply #8 - Mar 24th, 2010 at 8:51am
Print Post  
That should be fixed in this build:
https://mindfusion.eu/_beta/diaglite14_interm.zip
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint