Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic OrthogonalLayout Crash in Run mode (Read 2223 times)
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
OrthogonalLayout Crash in Run mode
Nov 17th, 2010 at 10:59am
Print Post  
Hi Stoyo

Following code crashes the application with i run it directly but exectuing same program in debug mode works properly.

Code
Select All
	  private ShapeNode CreateApplication(string appName)
	  {
		ShapeNode appNode = new ShapeNode(diagram1);
		appNode.Text = appName;
		appNode.Bounds = new Rect(new Size(200, 70));
		diagram1.Nodes.Add(appNode);
		return appNode;
	  }

        private void LoadCustom(object sender, RoutedEventArgs e)
        {
            diagram1.ClearAll();
            ShapeNode app1 = CreateApplication("Item1");
            ShapeNode app2 = CreateApplication("Item2");
            ShapeNode app3 = CreateApplication("Item3");
            ShapeNode app4 = CreateApplication("Item4");

            diagram1.Factory.CreateDiagramLink(app1, app2);
            diagram1.Factory.CreateDiagramLink(app2, app1);
            diagram1.Factory.CreateDiagramLink(app4, app3);
            diagram1.Factory.CreateDiagramLink(app2, app4);

            new OrthogonalLayout() { KeepGroupLayout = true, MultipleGraphsPlacement = MultipleGraphsPlacement.MinimalArea }.Arrange(diagram1);

        }
 



The exception occurs when i press Ctrl+F5 in VS2010. Works properly if i press F5 and no need to set debug points.

Regards
Rajesh
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: OrthogonalLayout Crash in Run mode
Reply #1 - Nov 17th, 2010 at 1:02pm
Print Post  
Hi,

It works fine for me, what error message are you getting? Could you also try that with this version -  its OrthogonalLayout has been almost completely rewritten:
https://mindfusion.eu/_beta/WpfDiagram.2.5.zip

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


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
Re: OrthogonalLayout Crash in Run mode
Reply #2 - Nov 17th, 2010 at 1:16pm
Print Post  
Hi Stoyo

With new version also it doen't work at my end.

I get following message

WpfApplication1 has stopped working.
Windows can check online for a solution to the problem.

Check online for a solution and close the prgoram.
Close the program.
Debug the program.

On expand following details are visible.
Problem signature:
  Problem Event Name:CLR20r3
  Problem Signature 01:wpfapplication1.exe
  Problem Signature 02:1.0.0.0
  Problem Signature 03:4ce3d3e2
  Problem Signature 04:MindFusion.Diagramming.Wpf
  Problem Signature 05:2.5.0.27571
  Problem Signature 06:12
  Problem Signature 07:1c2e
  Problem Signature 08:0
  Problem Signature 09:System.NullReferenceException
  OS Version:6.1.7600.2.0.0.256.27
  Locale ID:1033
  Additional Information 1:0a9e
  Additional Information 2:0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:0a9e
  Additional Information 4:0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

Regards
Rajesh
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: OrthogonalLayout Crash in Run mode
Reply #3 - Nov 17th, 2010 at 1:39pm
Print Post  
Could you email your test app to support@mindfusion.eu?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint