WPF Area series crash

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
neurosoft
Newbie
Newbie
Posts: 14
Joined: Wed May 14, 2014 12:00 am

WPF Area series crash

Post by neurosoft » Tue Dec 23, 2014 5:55 am

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!
Attachments
WpfApplicationAreaProblem.zip
(9.73 KiB) Downloaded 570 times

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: WPF Area series crash

Post by Yeray » Tue Dec 23, 2014 10:44 am

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();
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

neurosoft
Newbie
Newbie
Posts: 14
Joined: Wed May 14, 2014 12:00 am

Re: WPF Area series crash

Post by neurosoft » Tue Dec 23, 2014 12:49 pm

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).

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: WPF Area series crash

Post by Yeray » Tue Dec 23, 2014 1:34 pm

Hello,
neurosoft wrote:This code worked in previous version as well.
Could you please specify in what build so we can check the differences?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

neurosoft
Newbie
Newbie
Posts: 14
Joined: Wed May 14, 2014 12:00 am

Re: WPF Area series crash

Post by neurosoft » Wed Dec 24, 2014 6:23 am

With previous version from August 2014 (Steema TeeChart for .NET 2014 4.1.2014.08120) it works well. You can check it easily.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: WPF Area series crash

Post by Yeray » Wed Dec 24, 2014 9:58 am

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply