Page 1 of 1

issue regarding TeeChart rendering

Posted: Fri Apr 27, 2018 6:05 am
by 9641422
Hi Steema Support,

We are facing one issue regarding TeeChart rendering. We are using the Dot Net TChart version 2012.
The problem is that when we show/open a chart on Window form as dialog, first time form opens correctly.
img1.png
img1
img1.png (9.52 KiB) Viewed 7791 times

When we close the dialog and again reopens it (without creating the new instance of the form), we got crash on teechart.
img2.png
img2
img2.png (38.25 KiB) Viewed 7790 times
Please the the demo in attachments.
teechartDemo.rar
Demo
(55.81 KiB) Downloaded 833 times
Thanks in advance.

Thanks and Regards
Planoresearch

Re: issue regarding TeeChart rendering

Posted: Fri Apr 27, 2018 10:42 am
by Christopher
Hello,

Okay, I have been able to reproduce this issue in the latest source code. I'm not yet entirely sure why it happens, but certainly the problem can be mitigated with the following code.

Code: Select all

private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
     tChart1.Chart.Graphics3D.BackBuffer = null;
}