Page 1 of 1

Crash in WPF chart when resizing chart in 3D mode

Posted: Wed Jan 04, 2012 9:34 am
by 16060157
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)

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

Posted: Wed Jan 04, 2012 3:23 pm
by 10050769
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,

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

Posted: Wed Jan 18, 2012 3:11 pm
by 16060157
We still have this issue in version 4.1.2011.10193.

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

Posted: Thu Jan 19, 2012 2:45 pm
by 10050769
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,

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

Posted: Tue Jan 31, 2012 1:31 pm
by 16060157
The problem still exists in the latest build. Attached is a small sample project where the resize problem is simulated

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

Posted: Wed Feb 01, 2012 3:07 pm
by 10050769
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.

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

Posted: Fri Feb 10, 2012 11:22 am
by 16060157
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

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

Posted: Tue Feb 14, 2012 1:19 pm
by 10050769
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.

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

Posted: Tue Feb 21, 2012 3:41 pm
by 16060157
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

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

Posted: Tue Feb 21, 2012 5:03 pm
by 10050769
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,

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

Posted: Wed Feb 22, 2012 10:02 am
by 10050769
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,