Hi
(We are using V2.0 of Teechart. I tried to acces the latest 2009 release, but couldn't access it via my client area??)
We are currently experiencing a very confusing (huge) memory/resource leak in the TeeChart control. The source of the leak is from accessing the Bitmap property of a Steema.TeeChart.TChart instance, but only from our parent GUI application, and not from a standards Windows Form application (??), and only on one P.C. (very confusing!!).
If I create a windows forms application with a simple application that creates a TChart instance, and creates a windows button so that each time it is clicked it reads the tchart1.Bitmap property, then when the button is clicked in the windows application, no leaks are seen.
However, when an instance of this same test windows form is created in our GUI application, and the button is clicked, a huge increase in memory (that never decreases), is observed each time the button is clicked. If the call to tchart1.Bitmap is commented out no increases are observed when the button is clicked. The windows application is very simple and does not implement any of the TChart event that are fired when reading the tchart1.Bitmap property. The leaks seems to be a GDI+ resource issue.
Do you have any clues as to what might be causing this? Just to reitterate, this issue is only seen on one of our P.C.'s the other ones don't seem to exhibit what seems to be a GDI+ resource reclamation issue.
Any help/suggestions would be gratefully received.
thanks,
Ben.
Confusing memory/resource leak accessing the TeeChart Bitmap
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Which is the exact problem you are having with it?(We are using V2.0 of Teechart. I tried to acces the latest 2009 release, but couldn't access it via my client area??)
I'm afraid not. Could you please send us a simple example project we can run "as-is" and give us some information about the environment where you reproduce the issue (machine characteristics, OS, IDE version, .NET Framework version, etc.) so that we can make some tests here and check if we can reproduce it?Do you have any clues as to what might be causing this? Just to reitterate, this issue is only seen on one of our P.C.'s the other ones don't seem to exhibit what seems to be a GDI+ resource reclamation issue.
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |
Hi Narcís.
It's really the source code we need. Is this available for the V2.0 2009 release?
I'd like to try it just in case this issue is fixed by it.
The issue only occurs when creating an instance of the TeeChart from our GUI app. The application is a managed application. It running under windows XP, built with Visual Studio 2005, against version v2.0.50727 of the .NET framework. It's really bizarre, because when the same test Teechart form is used outside of our GUI application, it doesn't leak resources. We're going to continue investigating, but that's all we have right now.
The version of Teechart source code we're using is 2.0.3203.23271/2. Note this is only an issue on one P.C. it seems fine on the other PC's (??)
(I will upload a zip file called BitmapMemoryLeak.zip. It's built in VS2K5. You'll need to click on the "Get Bitmap" button to try and get it to leak.
thanks,
Ben.
It's really the source code we need. Is this available for the V2.0 2009 release?
I'd like to try it just in case this issue is fixed by it.
The issue only occurs when creating an instance of the TeeChart from our GUI app. The application is a managed application. It running under windows XP, built with Visual Studio 2005, against version v2.0.50727 of the .NET framework. It's really bizarre, because when the same test Teechart form is used outside of our GUI application, it doesn't leak resources. We're going to continue investigating, but that's all we have right now.
The version of Teechart source code we're using is 2.0.3203.23271/2. Note this is only an issue on one P.C. it seems fine on the other PC's (??)
(I will upload a zip file called BitmapMemoryLeak.zip. It's built in VS2K5. You'll need to click on the "Get Bitmap" button to try and get it to leak.
thanks,
Ben.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
At the present moment there's no sourcecode build for the 22nd January 2009 release. We will try to publish it next week.
I've seen that your company also holds TeeChart for .NET v3 licenses. Is that correct? If so, have you tried if this issue also happens in v3?
Thanks in advance.
At the present moment there's no sourcecode build for the 22nd January 2009 release. We will try to publish it next week.
I've seen that your company also holds TeeChart for .NET v3 licenses. Is that correct? If so, have you tried if this issue also happens in v3?
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |
Hi Narcís.
I think I've discovered the cause of the issue. It's seems some data-access-thread in our GUI app was throwing an exception, in turn causing memory corruption, in turn causing this issue (??)...
Once again thanks for you willingness to support us on this issue.
I don't think we have purchased V3 licenses, but is this something you can verify?
thanks,
Ben.
I think I've discovered the cause of the issue. It's seems some data-access-thread in our GUI app was throwing an exception, in turn causing memory corruption, in turn causing this issue (??)...
Once again thanks for you willingness to support us on this issue.
I don't think we have purchased V3 licenses, but is this something you can verify?
thanks,
Ben.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
Thanks in advance.
You're very welcome. I'm glad to hear you found the solution to the problem.I think I've discovered the cause of the issue. It's seems some data-access-thread in our GUI app was throwing an exception, in turn causing memory corruption, in turn causing this issue (??)...
Once again thanks for you willingness to support us on this issue.
Yes, I think so. You can contact our Sales Dept., at sales at steema dot com, for details. You should provide them with your client number, the contact person in your company that purchased TeeChart licenses and anything you find relevant.I don't think we have purchased V3 licenses, but is this something you can verify?
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |