Confusing memory/resource leak accessing the TeeChart Bitmap
Posted: Mon Jan 26, 2009 12:05 am
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.
(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.