Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Exception when using TreeLayout (Read 2976 times)
Arjan Noordhoek
Guest


Exception when using TreeLayout
Mar 7th, 2006 at 10:39am
Print Post  
When using settings as shown in Delphi code below, I get an exception when calling arrangediagram(lLayoutTree). The Root is pointing to a valid Tableitem and when not using arrangediagram a correct diagram is shown.
What am I missing?

code:
var
  lLayoutTree: ITreeLayout
begin
     lLayoutTree := CoTreeLayout.Create;
     lLayoutTree.Root := ClassDiagram.FindTable(Subject.OID.AsVariant);
     lLayoutTree.Symmetric := True;
     lLayoutTree.Direction := tldLeftToRight;
     lLayoutTree.type_ := tltBorderAligned;
     lLayoutTree.NodeSpacing := 30;
     lLayoutTree.LevelSpacing := 40;
     lLayoutTree.KeepRootPos := true;
     lLayoutTree.ReversedArrows := false;
     ClassDiagram.ArrangeDiagram(lLayoutTree);
end;
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Exception when using TreeLayout
Reply #1 - Mar 7th, 2006 at 11:22am
Print Post  
Does that happen with the Pro or Standard edition ? If you have both versions installed, make sure the TreeLayout and FlowChart classes are loaded from the same edition dll, either both from Pro or both from the Standard one.

Is there any HRESULT value reported with the exception ?
  
Back to top
 
IP Logged
 
Arjan Noordhoek
Guest


Re: Exception when using TreeLayout
Reply #2 - Mar 7th, 2006 at 11:55am
Print Post  
Am using the Pro version. No HResult.

Exception:
--------------------------------------------------------------------------------
---------------------------
  2.1 Date   : Tue, 7 Mar 2006 14:53:25 +0100
  2.2 Address: 040B9BB4
  2.3 Module : FlowChartPro.dll
  2.4 Type   : EAccessViolation
  2.5 Message: Access violation at address 040B9BB4 in module 'FlowChartPro.dll'. Read of address FEEEFEEE.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Exception when using TreeLayout
Reply #3 - Mar 7th, 2006 at 12:32pm
Print Post  
Could you check whether the TreeLayout Delphi sample works there ? The only difference I can see is in the treeLayout object declaration, in our code it is declared as of the wrapper TreeLayout class, and in your it is an interface pointer.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint