Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LayeredLayout: System.OutOfMemoryException (Read 4124 times)
rbeets
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Apr 19th, 2010
LayeredLayout: System.OutOfMemoryException
Apr 19th, 2010 at 2:01pm
Print Post  
Hi

We have a big problem after purchasing Diagramming and running into a System.OutOfMemoryException when trying to perform a LayeredLayout.Arrange on a diagram with 43 nodes. I tried the suggestions in other similar posts without success. I even replaced the Mindfusion demo diagram nodes with mine, resulting in the same error message...

Please help! We need to go into production with this and although all was fine with most diagrams so far, this is a nasty surprise.

Thanks much in advance.

System.OutOfMemoryException was unhandled
  Message="Exception of type 'System.OutOfMemoryException' was thrown."
  Source="mscorlib"
  StackTrace:
      at System.Collections.Hashtable.rehash(Int32 newsize)
      at System.Collections.Hashtable.expand()
      at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
      at System.Collections.Hashtable.Add(Object key, Object value)
      at MindFusion.Layout.x1589754bb68beaf3.x0dda7684103d232d(x5e63d74830b5db57 x8e7bfcccb55aaf8f, Int64 x27e997f415e3127b)
      at MindFusion.Layout.x348b8deb5aa85ce7.xb7874248b0c0bc2d(x5e63d74830b5db57 x8e7bfcccb55aaf8f, xae117168b0e0c39f x8d3f74e5f925679c, x78e3ce9dc43283f0 x22bfd1664c623dc4)
      at MindFusion.Diagramming.Layout.LayeredLayout.Arrange(Diagram diagram, DiagramItemCollection items)
      at MindFusion.Diagramming.Layout.Layout.Arrange(Diagram diagram)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: LayeredLayout: System.OutOfMemoryException
Reply #1 - Apr 19th, 2010 at 7:13pm
Print Post  
Please email the diagram saved as xml and the layout setup code to support@mindfusion.eu.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: LayeredLayout: System.OutOfMemoryException
Reply #2 - Apr 19th, 2010 at 8:12pm
Print Post  
I remember there was a similar problem with the initial implementation of the EnforceLinksFlow property. It depended on the number and length of cycles in the diagram. We have implemented a more memory-efficient algorithm in the next release. So try using a newer version of the control or disable EnforceLinksFlow. Register at http://www.clientsarea.eu/ to access upgrades and patches.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
rbeets
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Apr 19th, 2010
Re: LayeredLayout: System.OutOfMemoryException
Reply #3 - Apr 20th, 2010 at 8:27pm
Print Post  
Hi, thanks for the suggestion, I'll give it a try.

Meanwhile I managed to solve the problem: the  code responsible for creating the links between the nodes incorrectly created about 100 times as many links as was necessary (i.e. duplicate links, in my case 3460 links instead of about 40). Maybe that's a scenario you guys can test/optimise for a future release.

Thanks again for your help.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint