Points 3D crash in VS2008/VS2005

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
johnw3
Newbie
Newbie
Posts: 3
Joined: Thu Jul 10, 2003 4:00 am

Points 3D crash in VS2008/VS2005

Post by johnw3 » Mon Sep 27, 2010 10:06 pm

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?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Points 3D crash in VS2008/VS2005

Post by Sandra » Tue Sep 28, 2010 10:46 am

Hello johnw3,

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();
           
        }
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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

johnw3
Newbie
Newbie
Posts: 3
Joined: Thu Jul 10, 2003 4:00 am

Re: Points 3D crash in VS2008/VS2005

Post by johnw3 » Tue Sep 28, 2010 1:56 pm

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.
Attachments
delmetest.zip
vs2008 project
(491.68 KiB) Downloaded 320 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Points 3D crash in VS2008/VS2005

Post by Sandra » Tue Sep 28, 2010 4:07 pm

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,
Attachments
delmetest.zip
(566.52 KiB) Downloaded 304 times
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

johnw3
Newbie
Newbie
Posts: 3
Joined: Thu Jul 10, 2003 4:00 am

Re: Points 3D crash in VS2008/VS2005

Post by johnw3 » Tue Sep 28, 2010 7:16 pm

Problem solved! Thanks, Sandra. I uninstalled the old and installed a fresh download and it works.

Post Reply