Decimal series exception

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
NojaPower
Newbie
Newbie
Posts: 6
Joined: Fri Feb 22, 2008 12:00 am

Decimal series exception

Post by NojaPower » Mon Sep 01, 2008 12:40 am

TeeChart version 3.5.3146.24806

The following code generates a System.ArrayTypeMismatchException in the series.Add() call.

Code: Select all

decimal[] yValues = new decimal[] {23.45m, 120.0m };
int[] xValues = new int[] { 0, 10 };
			
Series series = curveChart.Series.Add(new Steema.TeeChart.Styles.Line());
series.Add(xValues, yValues);
System.ArrayTypeMismatchException was unhandled by user code
Message="Source array type cannot be assigned to destination array type."
Source="mscorlib"
StackTrace:
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.CopyTo(Array array, Int32 index)
at Steema.TeeChart.Styles.Series.ConvertArray(Array a, Int32 numPoints)
at Steema.TeeChart.Styles.Series.Add(Array xValues, Array yValues)

It only seems to occur for decimal data types.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Sep 01, 2008 8:20 am

Hi NojaPower,

Thanks for reporting. I could reproduce the issue here and added it (TF02013365) to the bug list to be fixed for next releases.
Best Regards,
Narcís Calvet / 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

Post Reply