Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic OutOfMemoryException (Read 3268 times)
abereznyi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 22nd, 2010
OutOfMemoryException
Apr 23rd, 2010 at 6:09pm
Print Post  
I am using 1.4 beta, and sometimes I see this error:

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Windows.Data.BindingOperations.SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
at MindFusion.Diagramming.Silverlight.Pen.x550781f8db1cf5f2(Shape xe125219852864557, Pen x90279591611601bc)
at MindFusion.Diagramming.Silverlight.DiagramLink.set_HeadPen(Pen value)
at MindFusion.Diagramming.Silverlight.DiagramLink.UpdateVisuals()
at MindFusion.Diagramming.Silverlight.DiagramLink.xf320dc171fee20e1()
at MindFusion.Diagramming.Silverlight.DiagramNode.xd906270113e35cbf(DiagramItem xccb63ca5f63dc470)
at MindFusion.Diagramming.Silverlight.xcb359d3cc19bff83.Accept(DiagramItem item)
at MindFusion.Diagramming.Silverlight.DiagramNode.x36c189560c1bcef6(x6933c0ea05ceb1
03 x2103dfe2fdcd2bb1, x6933c0ea05ceb103 x79ccaefbc569439c)
at MindFusion.Diagramming.Silverlight.DiagramNode.xf320dc171fee20e1()
at MindFusion.Diagramming.Silverlight.DiagramNode.SetBounds(Rect newRect, Boolean updateChildren)
at MindFusion.Diagramming.Silverlight.DiagramNode.MoveWith(Double dx, Double dy)
at MindFusion.Diagramming.Silverlight.Layout.x73e4e74934f5902b.set_x6ae4612a8469678
e(Rect xbcea506a33cf9111)
at MindFusion.Layout.x31801144431a8360.Iterate(Int32 iterationFrom, Int32 iterationTo)
at MindFusion.Diagramming.Silverlight.Layout.SpringLayout.Iterate(Int32 iterationFrom, Int32 iterationTo)
at MindFusion.Diagramming.Silverlight.Layout.SpringLayout.Arrange(Diagram diagram, DiagramItemCollection items)
at MindFusion.Diagramming.Silverlight.Layout.Layout.Arrange(Diagram diagram)

Platform: Win32
Browser: Netscape
Version: 5.0
CookiesEnabled: True
Culture: en-US


It spins for a while before crashing like this.
The diagram is small (less that 10 nodes).

I suppose there is a bad recursion somewhere there.

Thanks,
Alex


  

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: OutOfMemoryException
Reply #1 - Apr 23rd, 2010 at 6:53pm
Print Post  
There isn't any recursion here. This code runs when the layout has calculated the placement for all items and proceeds to update the positions of their visual elements. What kind of link pens and arrowheads are you using?
  
Back to top
 
IP Logged
 
abereznyi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 22nd, 2010
Re: OutOfMemoryException
Reply #2 - Apr 23rd, 2010 at 7:07pm
Print Post  
I don't think it is related to arrow heads and such.

Most likely it's due to the fact that I switched to Silverlight 4 few days ago.

Do I need another build of your library?

Thanks,
Alex
  

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: OutOfMemoryException
Reply #3 - Apr 23rd, 2010 at 7:25pm
Print Post  
We often get out of memory errors when using dashed pens with antialising in Windows Forms, and I thought it might be similar problem. Are you setting the pen's dash array?

You might also try this build, which was compiled against the SL4 runtime:
https://mindfusion.eu/_beta/diaglite15_print.zip

Stoyan
  
Back to top
 
IP Logged
 
abereznyi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 22nd, 2010
Re: OutOfMemoryException
Reply #4 - Apr 23rd, 2010 at 8:14pm
Print Post  
I use some dashes pen, but I don't set the dash array.
Just this:
link.Pen = new Pen(Brushes.Green, 3.0, DashStyles.DashDotDot);

I will try this SL4 build.
  

&&Thanks,&&Alex
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint