We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

ColumnChart_2008 unhandled exception when 3-D enabled

Hi!

I would like to use your 3-D column chart, I am using WPF and C#. When I run your sample code ColumnChart_2008, the initial chart comes up okay, but when I click on the 3-D Enabled check box, I get the following error:

An unhandled exception of type 'System.NullReferenceException' occurred in ColumnChart.exe.

Additional information: Object reference no set to an instance of an object.

If I break, the error is in:

private void checkBox1_Click(object sender, RoutedEventArgs e)
{

if (checkBox1.IsChecked == true)
{
this.Chart1.Areas[0].View3DMode = true;
this.Chart1.Areas[0].Chart3DSettings.ShowBackWall = false;
this.Chart1.Areas[0].Chart3DSettings.BackWallThickness = 0;
this.Chart1.Areas[0].Chart3DSettings.BackWallBackground = Brushes.Transparent;
this.Chart1.Areas[0].Chart3DSettings.BottomWallThickness = 0;
this.Chart1.Areas[0].Chart3DSettings.BottomWallBackground = Brushes.Transparent;
this.Chart1.Areas[0].Chart3DSettings.LeftWallThickness = 0;
this.Chart1.Areas[0].Chart3DSettings.LeftWallBackground = Brushes.Transparent;
}
else
{
this.Chart1.Areas[0].View3DMode = false;

}
}

Chart3DSettings is null.

Is there a bug in the sample program? I am on version 7.103.0.21.

Thanks so much!
Anne


2 Replies

PJ Pavithra J Syncfusion Team February 13, 2009 12:27 PM UTC

Hi Anne,

Thanks for your interest in Syncfusion products.

We could reproduce the issue mentioned by you. We have logged a defect report on this.

But as per our company policy we dont provide defect fix related information in Forum.

Since the Forum is considered as a discussion venue for developers and not the primary source for support you can use your Direct Trac account for our further assistance.

Regards,
Pavithra.J



AK Anne Kim February 13, 2009 03:44 PM UTC

Thanks for your note!

I'll send a note to Direct-Trac.

Thanks a lot!
Anne


Loader.
Live Chat Icon For mobile
Up arrow icon