Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic PathFinder.FindAllCycles exception (Read 2956 times)
jpierre
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Location: france
Joined: Jul 20th, 2018
PathFinder.FindAllCycles exception
Jul 20th, 2018 at 1:20pm
Print Post  
Dear All,

I am trying to evaluate the Mindfusion Diagram capabilities, and it looks great from what i started to see Cheesy!

However, i am blocked by a small issue ... An Exception raised by FindAllCycles method of PathFinder Class when the 'undirected links' option is set to true.

Here is my simple code :
Code
Select All
Dim testDiagram As New Diagram

Dim node1, node2 As ShapeNode
node1 = testDiagram.Factory.CreateShapeNode(50, 100, 120, 80, MindFusion.Diagramming.Shapes.Plaque)
node2 = testDiagram.Factory.CreateShapeNode(50, 100, 120, 80, MindFusion.Diagramming.Shapes.Plaque)

Dim link1, link2 As DiagramLink
link1 = testDiagram.Factory.CreateDiagramLink(node1, node2)
link2 = testDiagram.Factory.CreateDiagramLink(node2, node1)

Dim PathFind As New PathFinder(testDiagram, True)
Dim listcycles As PathCollection

listcycles = PathFind.FindAllCycles()
 



In this code, the FindAllCycles raised an Exception :
'System.ArgumentNullException' --> Value can not be null

When i change the PathFinder option from True to False the code is going well.

What could be the explanation of that ?

Thanks for your help Smiley
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: PathFinder.FindAllCycles exception
Reply #1 - Jul 20th, 2018 at 3:45pm
Print Post  
Hi,

Indeed, I've reproduced it. We replaced all of PathFinder in last release and apparently haven't tried the most simple of cycles. We'll try to patch it next week.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
jpierre
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Location: france
Joined: Jul 20th, 2018
Re: PathFinder.FindAllCycles exception
Reply #2 - Jul 20th, 2018 at 4:06pm
Print Post  
OK thanks for this fast feedback Smiley

regards,
mekap
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: PathFinder.FindAllCycles exception
Reply #3 - Jul 23rd, 2018 at 1:08pm
Print Post  
It should be fixed in this build -
https://mindfusion.eu/_beta/fcnet653.zip

Regards,
Slavcho
  
Back to top
 
IP Logged
 
jpierre
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Location: france
Joined: Jul 20th, 2018
Re: PathFinder.FindAllCycles exception
Reply #4 - Jul 25th, 2018 at 8:20am
Print Post  
Hello,
It is ! Thanks.
Best Regards,
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint