Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Crash when manually copying links (Read 3262 times)
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Crash when manually copying links
Mar 9th, 2009 at 5:27pm
Print Post  
Hi!

Really similar to http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=123254705..., it crashes when I try to manually copy node + links.

A first chance exception of type 'System.NullReferenceException' occurred in MindFusion.Diagramming.dll
Exception message:
Object reference not set to an instance of an object.

Stack:
at MindFusion.Diagramming.DiagramLink.x0d5905a18dc24aa7(Boolean x1c5ff8c3c1ac16ad)
at MindFusion.Diagramming.DiagramLink.UpdateFromPoints(Boolean updateGroups)
at MindFusion.Diagramming.DiagramLink.UpdateFromPoints()
at MindFusion.Diagramming.Diagram.CopySelection(Diagram source, Boolean unconnectedLinks, Boolean copyGroups)
at Entities.MainForm.buttonCopy_Click(Object sender, EventArgs e) in M:\AnimTree\Varies\TestsC#\ManualCopyWithLinks\MainForm.cs:line 266


To reproduce this error:
Add 1 copy button to the Entities sample:
Code
Select All
private void buttonCopy_Click(object sender, EventArgs e)
{
    try
    {
        this.diagram.CopySelection(this.diagram, false, false);
    }
    catch (Exception exc)
    {
        System.Console.WriteLine("Exception message:\n" + exc.Message + "\n\nStack:\n" + exc.StackTrace);
    }
} 



Then, create 3 entities, link them and CTRL-Click to select all components except for one of the nodes (you'll have 2 nodes and 2 links selected). Click Copy and BOOM! In fact, just selecting 1 link works. Nevertheless, if you select 2 nodes including the link in between them (but no other), it doesn't crash.

Thanks,
Marie

p.s. I'm using version 5.2.0.21110.
« Last Edit: Mar 10th, 2009 at 3:26pm by marie »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crash when manually copying links
Reply #1 - Mar 10th, 2009 at 11:41am
Print Post  
Hi,

Try it with the build from the PM page. We are using a new naming convention for the assemblies now; you must remove the Flowchart.NET references from your project, and add references to the corresponding new assemblies.

Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Crash when manually copying links
Reply #2 - Mar 10th, 2009 at 3:11pm
Print Post  
Hi,

Thanks a lot! Is it safe enough to be used in regards to other changes that might be included?

Regards,
Marie

p.s. I think it was a good idea to rename dlls so they are more easily recognizable Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crash when manually copying links
Reply #3 - Mar 10th, 2009 at 3:44pm
Print Post  
Hi Marie,

Yes, it contains just a few fixes and should be even more safer than the release version Wink As for the assembly names, we are preparing a package of Windows Forms controls with about 30 assemblies inside, so that was a must...

Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Crash when manually copying links
Reply #4 - Mar 10th, 2009 at 3:59pm
Print Post  
Perfect  Cheesy

Thanks again,
Marie
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint