Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowChart.NET Pro Error (Read 4060 times)
jdevine
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Dec 12th, 2005
FlowChart.NET Pro Error
Dec 12th, 2005 at 9:13pm
Print Post  
Version of FlowChart.NET is 3.2.3.22967

Running on .NET Framework vs 1.1

ShapeTemplate.FromId("DividedEvent") throws "Object Reference Not Set To An Instance Of An Object"

Any ideas?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowChart.NET Pro Error
Reply #1 - Dec 13th, 2005 at 5:19am
Print Post  
The list of predefined shapes is not populated until the FlowChart constructor is executed. If you assign  ShapeTemplate.FromId("DividedEvent") to a ShapeTemplate field in the class body, the field will be null. Try setting the field in your form constructor after the form InitializeComponent call.

Stoyan
  
Back to top
 
IP Logged
 
jdevine
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Dec 12th, 2005
Re: FlowChart.NET Pro Error
Reply #2 - Dec 13th, 2005 at 1:51pm
Print Post  
Thanks! I'll try that and post back the results.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowChart.NET Pro Error
Reply #3 - Dec 13th, 2005 at 2:06pm
Print Post  
The developers have moved the code that defines the stock shapes to a static constructor of the ShapeTemplate class, so it will be possible to assign a predefined shape to a class field by initializing the field within the class body. We'll release that fix with version 4.01 in a couple of days.

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