Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic changing layout crash the IE (Read 3750 times)
avir
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Sep 17th, 2009
changing layout crash the IE
Sep 17th, 2009 at 11:59am
Print Post  
Hi,
We are using a FlowChartX ActiveX control, Professional Edition version 4.1.0.0.
we are using the flowchart to display an hierarchy diagram of our product - boxes.
In case the flow chart display many entities - 5000 boxes and 5000 arrows and the user is changing the layout to auto layout, we get a runtime error over the iexplorer.exe.
The crash happend when we run over over all the arrows and changing every arrow to auto:
arrow.AutoRoute = true;

do you have an explanation for that? is there a work around? what do you suggest ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: changing layout crash the IE
Reply #1 - Sep 21st, 2009 at 8:00am
Print Post  
Hi,

It could be caused by an out-of-memory error. Try using a larger RoutingOptions.GridSize. If you make the grid size twice larger, the algorithm will require 4 times less memory.

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


I love YaBB 1G - SP1!

Posts: 2
Joined: Sep 17th, 2009
Re: changing layout crash the IE
Reply #2 - Sep 29th, 2009 at 12:29pm
Print Post  
Hi,
I have changed the property (RoutingOptions.GridSize) you mentioned from 12 to 50 and suddenly the iexplorer.exe didnt crash.
Can you please specifiy what is the meaning of this property and what is the limit (can i put 1000 for example ) and what is the trade-off for using it.
Where can it affect my implementation?

Thanks alot in advanced
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: changing layout crash the IE
Reply #3 - Sep 29th, 2009 at 3:52pm
Print Post  
Hi,

The routing algorithm creates a grid whose pieces are of that size. The grid covers the whole diagram, so if the diagram is very large and the grid size is small, it might need a lot of memory (diagram_width / grid_size) * (diagram_height / grid_size) * 4 bytes. Additionally, each path found in that grid requires some memory. The drawback of setting a larger grid size is that the grid might treat empty spaces between nodes that are close to each other as occupied, and not allow links to pass between these nodes.

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