User (Legacy) Posted October 31, 2003 Report Share Posted October 31, 2003 Dear Sir, I have got a serious system crash problem from ChartFX for .net component when I change the gallery type from scatter to radar. This problem does not always happen but you can reproduce it with below code. Seems ChartFX .Net has some problem to handle the data I input. Please help to fix it. P.S. My ChartFX .Net version is 6.0.1353.24702. O.S. is Windows XP professional. .Net Framework is version 1.0.3705. Visual Studio .NET 2002 - C# version 7.0.9466 Regards, James //Draw scatter plot chart1.ClearData(SoftwareFX.ChartFX.ClearDataFlag.AllData); chart1.OpenData(SoftwareFX.ChartFX.COD.Values, 1, 10); chart1.OpenData(SoftwareFX.ChartFX.COD.XValues, 1, 10); chart1.Gallery = SoftwareFX.ChartFX.Gallery.Scatter; double[] arrData = new double[10]{2,0,1,1,11,161,0,0,0,29}; chart1.AxisY.Max = 170; chart1.AxisY.Min = 0; chart1.AxisX.Max = 1; chart1.AxisX.Min = 0; chart1.AxisX.Step = 0.1; chart1.AxisX.LabelsFormat.Decimals = 1; for (int i = 0; i < 10; i ++) { chart1.Value[0,i] = arrData[i]; chart1.XValue[0,i] = 0.1 * i; } chart1.CloseData(SoftwareFX.ChartFX.COD.Values); chart1.CloseData(SoftwareFX.ChartFX.COD.XValues); chart1.Refresh(); //Change gallery type to Radar will get system crash problem. //Both use code and gallery dialog to change gallery type will get the same error. chart1.Gallery = SoftwareFX.ChartFX.Gallery.Radar; //The error message is list at below. // An unhandled exception of type 'System.DivideByZeroException' occurred in system.windows.forms.dll // Additional information: Attempted to divide by zero. Link to comment Share on other sites More sharing options...
Software FX Posted October 31, 2003 Report Share Posted October 31, 2003 We were able to reproduce the problem. It happens because of the X-Axis Scale. Specifically because the X-Axis Step is < 1. We will fix this problem and will include a fix in the next service pack. Thank you for reporting the problem. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.