Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SaveLoad Example (Read 3070 times)
FMB
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Feb 18th, 2009
SaveLoad Example
Feb 18th, 2009 at 12:35am
Print Post  
Hi Guys,
I am currently testing your diagram for my client. they will be purchasing in the Next 1 week.

When running your example for SaveLoad I get an error.
I am getting this error once loaded and I try to click and drag the mouse on a shape. See Exception Below.

Regards,
Fred

throw new Error("Unhandled Error in Silverlight 2 Application Index was out of range. Must be non-negative and less than the size of the collection.\nParameter name: index   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)\n   at System.ThrowHelper.ThrowArgumentOutOfRangeException()\n   at System.Collections.Generic.List`1.get_Item(Int32 index)\n   at MindFusion.Diagramming.Silverlight.DiagramLink.xd433eaf1292c9575()\n   at MindFusion.Diagramming.Silverlight.DiagramLink.xda67846f2ee615bf(Rect xda73fcb97c77d998)\n   at MindFusion.Diagramming.Silverlight.DiagramLink.UpdateVisuals()\n   at MindFusion.Diagramming.Silverlight.DiagramLink.AddToCanvas(Point location)\n   at MindFusion.Diagramming.Silverlight.LinkNodesBehavior.StartDraw(Point point)\n   at MindFusion.Diagramming.Silverlight.BehaviorBase.x047918dd55bc8368(Point x2f7096dac971d6ec)\n   at MindFusion.Diagramming.Silverlight.BehaviorBase.OnMouseMove(MouseEventArgs e)\n   at MindFusion.Diagramming.Silverlight.Diagram.x2c5d1da1234c3a6a(Object xe0292b9ed559da7d, MouseEventArgs xfbf34718e704c6bc)\n   at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)\n   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)");
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SaveLoad Example
Reply #1 - Feb 18th, 2009 at 9:25am
Print Post  
Hi,

There's a bug in the serialization code and the LinkSegments value is lost. After loading, set Diagram.LinkSegments = 1 or any default value that you prefer (greater than 0), and it should work fine. We'll release a patch with version 1.0.1 later this week.

Stoyan
  
Back to top
 
IP Logged
 
FMB
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Feb 18th, 2009
Re: SaveLoad Example
Reply #2 - Feb 18th, 2009 at 11:15pm
Print Post  
Thanks, that fixed it. I even learnt something new. The more the linksegments the more flixble your line can get.

Fred
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SaveLoad Example
Reply #3 - Feb 19th, 2009 at 12:57pm
Print Post  
Hi Fred,

We've uploaded a version that should fix that problem:
https://www.mindfusion.eu/DiagramLiteTrial.zip

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