Hi,
In our application, user can create and close charts dynamically.
But every time when user close any chart and create new one, memory usage increases.
In code, I dispose closed chart and remove it from form.
I created a simple application to show memory leaks.
In this application, every second with timer, I dispose current chart then create new one.
If I use Direct2D chart, memory usage increases in every timer tick.
But if I use GDI chart, memory usage is constant.
You can see the results by commenting following line in the Form1.cs
setD2D(tChart); // in CreateCharts() function
Thank you
Direct2D Memory Leak
Direct2D Memory Leak
- Attachments
-
- DemoProjectDirect2D.rar
- (12.81 KiB) Downloaded 534 times
Re: Direct2D Memory Leak
I forgot to write my environments.
Windows 7 OS
Visual Studio 2010
TeeChart for .NET 2013 4.1.2013.07300
SlimDX Runtime .NET 4.0 x86 (January 2012)
Windows 7 OS
Visual Studio 2010
TeeChart for .NET 2013 4.1.2013.07300
SlimDX Runtime .NET 4.0 x86 (January 2012)
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Direct2D Memory Leak
Hello,
I have been able to reproduce this issue here. Part of the issue has been fixed, as can be seen in id=681, but creating and disposing of a chart with a series in it still leaks memory, as recorded in id=682.gcs wrote:You can see the results by commenting following line in the Form1.cs
setD2D(tChart); // in CreateCharts() function
Best Regards,
Christopher Ireland / 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 |
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Direct2D Memory Leak
No, this code will not work for you because the fix required a change to the TeeChart.Direct2D.dll source code.gcs wrote:I tried the modified code in id=681.
It also has a memory leaks.
Can you check again please?
Best Regards,
Christopher Ireland / 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 |