I am trying to use tchart v1.1.4322 in VS2008 to do a 3D point plot. I can insert the tchart object onto a form and select a new Point 3D series. However, when I compile, VS2008 crashes with the exception "Object Reference not set to an instance of an object." The stack trace shows:
at Steema.TeeChart.Styles.Points3D.SetChart(Chart value)
at Steema.TeeChart.Styles.Series.Dispose(Boolean disposing)
at System.ComponentModel.Component.Finalize()
VS2008 will again crash upon project reload when it tries to display the form with the tchart object. The same thing happens in VS2005 even in a fresh project but not VS2003. There does not appear to be any problems with other type of series - just Point3D. It appears to be a bug of some sort but cannot find any helpful information. Does anyone know of a solution?
Points 3D crash in VS2008/VS2005
Re: Points 3D crash in VS2008/VS2005
Hello johnw3,
I couldn't reproduce it here using last version 1 of TeeChart.Net and next code:
Please try to do next with VS2005 and VS2008 and check again if previous code works fine:
-Add TeeChar.dll in Reference folder.
-Clean Solution.
- ReBuild Project Solution.
If problem persist, please, send us a simple project,because we can reproduce problem here.
I hope will helps.
Thanks,
I couldn't reproduce it here using last version 1 of TeeChart.Net and next code:
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Points3D points3D = new Steema.TeeChart.Styles.Points3D(tChart1.Chart);
points3D.FillSampleValues();
}
-Add TeeChar.dll in Reference folder.
-Clean Solution.
- ReBuild Project Solution.
If problem persist, please, send us a simple project,because we can reproduce problem here.
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Points 3D crash in VS2008/VS2005
I still cannot get it to work. I just created a brand new project and then dragged a tchart object onto form1 with nothing else. I then copied the following into the form load function:
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Points3D points3D = new Steema.TeeChart.Styles.Points3D(tChart1.Chart);
points3D.FillSampleValues();
The project will compile but when executed, I get the same error on the second line. The error only occurs when using the tChart1.Chart parameter but not sure why. Attached is the sample project.
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Points3D points3D = new Steema.TeeChart.Styles.Points3D(tChart1.Chart);
points3D.FillSampleValues();
The project will compile but when executed, I get the same error on the second line. The error only occurs when using the tChart1.Chart parameter but not sure why. Attached is the sample project.
- Attachments
-
- delmetest.zip
- vs2008 project
- (491.68 KiB) Downloaded 321 times
Re: Points 3D crash in VS2008/VS2005
Hello johnw3,
I have reproduce your problem with your project and its reference TeeChart.dll. I have changed it for my TeeChart.dll and it works fine. I have attached my project.Could you please, run my project and check if problem appears? if problem don't appears, please download last version 1 and check again if your problem is solved.
I hope will helps.
Thanks,
I have reproduce your problem with your project and its reference TeeChart.dll. I have changed it for my TeeChart.dll and it works fine. I have attached my project.Could you please, run my project and check if problem appears? if problem don't appears, please download last version 1 and check again if your problem is solved.
I hope will helps.
Thanks,
- Attachments
-
- delmetest.zip
- (566.52 KiB) Downloaded 305 times
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Points 3D crash in VS2008/VS2005
Problem solved! Thanks, Sandra. I uninstalled the old and installed a fresh download and it works.