Page 1 of 1
WPF Area series crash
Posted: Tue Dec 23, 2014 5:55 am
by 15669262
Hello!
After upgrading to the version 4.1.2014.12150 (Microsoft .NET Framework 4.0) WPF area series doesn't work correctly (program exception).
Please see attached sample.
If you comment line "area.Color = Colors.Aqua;" program will work, but with this line you will see exception.
It's not possible to use latest version at all, because bug is critical. Please fix it ASAP!
Re: WPF Area series crash
Posted: Tue Dec 23, 2014 10:44 am
by yeray
Hello,
Have you seen this working in previous versions? It would be easier for us to find a change that could have affected this behaviour.
Try changing the order of the calls, from this:
Code: Select all
area = new Area();
area.Color = Colors.Aqua;
area.FillSampleValues();
tChartSpectrum.Series.Add(area);
To this:
Code: Select all
area = new Area();
tChartSpectrum.Series.Add(area);
area.Color = Colors.Aqua;
area.FillSampleValues();
Re: WPF Area series crash
Posted: Tue Dec 23, 2014 12:49 pm
by 15669262
Thank you for fast replay.
This code worked in previous version as well. But after TChart upgrading to last version we've got an exception.
Your changes in code helps to avoid exception, but for our working project it will not work because TChart with colored area is created in one module (interface) and is filled with a data later in other module (mathematic).
Re: WPF Area series crash
Posted: Tue Dec 23, 2014 1:34 pm
by yeray
Hello,
neurosoft wrote:This code worked in previous version as well.
Could you please specify in what build so we can check the differences?
Re: WPF Area series crash
Posted: Wed Dec 24, 2014 6:23 am
by 15669262
With previous version from August 2014 (Steema TeeChart for .NET 2014 4.1.2014.08120) it works well. You can check it easily.
Re: WPF Area series crash
Posted: Wed Dec 24, 2014 9:58 am
by yeray
Hello,
Thanks. I've found when this was broken and I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1060