Crash in WPF chart when resizing chart in 3D mode
-
- Newbie
- Posts: 30
- Joined: Tue Sep 13, 2011 12:00 am
Crash in WPF chart when resizing chart in 3D mode
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)
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)
Re: Crash in WPF chart when resizing chart in 3D mode
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,
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 30
- Joined: Tue Sep 13, 2011 12:00 am
Re: Crash in WPF chart when resizing chart in 3D mode
We still have this issue in version 4.1.2011.10193.
Re: Crash in WPF chart when resizing chart in 3D mode
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,
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 30
- Joined: Tue Sep 13, 2011 12:00 am
Re: Crash in WPF chart when resizing chart in 3D mode
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 380 times
Re: Crash in WPF chart when resizing chart in 3D mode
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.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 30
- Joined: Tue Sep 13, 2011 12:00 am
Re: Crash in WPF chart when resizing chart in 3D mode
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
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
Re: Crash in WPF chart when resizing chart in 3D mode
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.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 30
- Joined: Tue Sep 13, 2011 12:00 am
Re: Crash in WPF chart when resizing chart in 3D mode
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
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
Re: Crash in WPF chart when resizing chart in 3D mode
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,
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 |
Instructions - How to post in this forum |
Re: Crash in WPF chart when resizing chart in 3D mode
Hello BeijerElectronics,
For next lines of code:
In method private void CalcWallsRect(ref Rect r) of Chart.cs file.
I hope will helps.
Thanks,
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: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
Code: Select all
if (r.Height > 0) r.Height -= t;
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;
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 |
Instructions - How to post in this forum |