Crash in WPF chart when resizing chart in 3D mode

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
BeijerElectronics
Newbie
Newbie
Posts: 30
Joined: Tue Sep 13, 2011 12:00 am

Crash in WPF chart when resizing chart in 3D mode

Post by BeijerElectronics » Wed Jan 04, 2012 9:34 am

Hi,

When we have a chart with a 3D line as series in it (perhaps for all different series) and resize the WPF control so that's it is no longer visible (that is making it really small) we get an exception with the following call stack. Perhaps a similar problem to a previously reported issue (http://www.teechart.net/support/viewtop ... 759#p55209) that you've been able to reproduce.

at System.Windows.Rect.set_Height(Double value)
at Steema.TeeChart.WPF.Chart.CalcWallsRect(Rect& r)
at Steema.TeeChart.WPF.Chart.InternalDraw(DrawingContext g, Boolean noTools)
at Steema.TeeChart.WPF.Chart.InternalDraw(DrawingContext g)
at Steema.TeeChart.WPF.TChart.Draw(DrawingContext g)
at Steema.TeeChart.WPF.TChart.OnRender(DrawingContext drawingContext)
at System.Windows.UIElement.Arrange(Rect finalRect)

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Crash in WPF chart when resizing chart in 3D mode

Post by Sandra » Wed Jan 04, 2012 3:23 pm

Hello BeijerElectronics,

I couldn't reproduce your problem using last version of TeeChartFor.Net 2011. Can you tell us which version of TeeChar are you using? On the other hand, I think your problem doesn't relate of the problem of the link http://www.teechart.net/support/viewtop ... 759#p55209, so it is produced in Ciruclar.cs file.

Thanks,
Best Regards,
Sandra Pazos / 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

BeijerElectronics
Newbie
Newbie
Posts: 30
Joined: Tue Sep 13, 2011 12:00 am

Re: Crash in WPF chart when resizing chart in 3D mode

Post by BeijerElectronics » Wed Jan 18, 2012 3:11 pm

We still have this issue in version 4.1.2011.10193.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Crash in WPF chart when resizing chart in 3D mode

Post by Sandra » Thu Jan 19, 2012 2:45 pm

Hello BeijerElectronics,

I inform you that there are a new maintenance release of TeeChart.Net here. Could you update your version of TeeChart.Net and try again if you problem persist. If your problem persist, please send us a simple project, because we can reproduce exactly your problem here.

Thanks,
Best Regards,
Sandra Pazos / 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

BeijerElectronics
Newbie
Newbie
Posts: 30
Joined: Tue Sep 13, 2011 12:00 am

Re: Crash in WPF chart when resizing chart in 3D mode

Post by BeijerElectronics » Tue Jan 31, 2012 1:31 pm

The problem still exists in the latest build. Attached is a small sample project where the resize problem is simulated
Attachments
WpfChartApplication.zip
Sample project
(14.97 KiB) Downloaded 379 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Crash in WPF chart when resizing chart in 3D mode

Post by Sandra » Wed Feb 01, 2012 3:07 pm

Hello BeijerElectronics,

You are right. I have added it in bug list report with number [TW16016017] and inform you it is already fixed for next maintenance release.

Thanks for your information.
Best Regards,
Sandra Pazos / 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

BeijerElectronics
Newbie
Newbie
Posts: 30
Joined: Tue Sep 13, 2011 12:00 am

Re: Crash in WPF chart when resizing chart in 3D mode

Post by BeijerElectronics » Fri Feb 10, 2012 11:22 am

Hello Sandra,

Do you have any estimate of when the next maintenance release will be released?

We really need this fixed until next week. Is that possible?

Thanks in advance

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Crash in WPF chart when resizing chart in 3D mode

Post by Sandra » Tue Feb 14, 2012 1:19 pm

Hello BeijferElectronics,

Sorry for the delay. I can not provide a estimate date of when next maintenance release will be published, because last release is of 9 of January. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.
Best Regards,
Sandra Pazos / 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

BeijerElectronics
Newbie
Newbie
Posts: 30
Joined: Tue Sep 13, 2011 12:00 am

Re: Crash in WPF chart when resizing chart in 3D mode

Post by BeijerElectronics » Tue Feb 21, 2012 3:41 pm

Hello Sandra,

Since it is critical for us to get this working, is it possible for you to send the fix in source code, so that we can add that fix and build your code ourself.
Thanks in advance

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Crash in WPF chart when resizing chart in 3D mode

Post by Sandra » Tue Feb 21, 2012 5:03 pm

Hello BeijerElectronics,

I inform you that in a few weeks we will be published a new next maintenance release of TeeChart.Net. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.

Thanks,
Best Regards,
Sandra Pazos / 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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Crash in WPF chart when resizing chart in 3D mode

Post by Sandra » Wed Feb 22, 2012 10:02 am

Hello BeijerElectronics,
Since it is critical for us to get this working, is it possible for you to send the fix in source code, so that we can add that fix and build your code ourself
Sorry I have forgotten indicate how you do to solve the problem in your source code. To solve the problem is very easy you only need to modified next line of code:

Code: Select all

 if (r.Height > 0) r.Height -= t;
For next lines of code:

Code: Select all

#if WPF || SILVERLIGHT
        double tmpH;
#else
        int tmpH;
#endif

      int  t = Math.Abs(aspect.Height3D) + tmp;
      tmpH = r.Height - t;
      r.Height = tmpH > 0 ? tmpH : 0;//TW16016017
       // if (r.Height > 0) r.Height -= t;
        r.Y += t;
In method private void CalcWallsRect(ref Rect r) of Chart.cs file.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / 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