Hello,
We used SLEAK to capture the non-disposed Resources.
1. started your Graph and keept it running for some time
2. created a snapshot from the current SWT-Resources by SLEAK
3. called chart.dispose() Method
4. Created a snapshot again and compared the differences
we found there are lot of GC objects,Font objects and color objects are existing in memory.
I think after creating new GC,old GC reference should be made null.For Color and Font It's better to access from registries.
Below stack trace is about GC object creation
at com.steema.teechart.TChart.prepareGraphics(TChart.java:1187)
at com.steema.teechart.TChart.processMouseMotionEvent(TChart.java:1225).
I think these non disposed resources will lead to performance issues.Is there any way to improve performance by disposing above objects.
Advance thanks for your reply.
Thanks,
Vijaya Raghava Rao
Problem with GC, Color & Font objects in TChart
Re: Problem with GC, Color & Font objects in TChart
Hi Vijaya,
I've added your suggestion to the wish list to be revised for future releases (TJ71015145)
I've added your suggestion to the wish list to be revised for future releases (TJ71015145)
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Problem with GC, Color & Font objects in TChart
Hello Yeray,
we are facing performance related issues in my product because of non disposed resources. this is very critical for our product.
Can you please let us know status of reported issue.
Thanks,
Vijaya Raghava Rao
we are facing performance related issues in my product because of non disposed resources. this is very critical for our product.
Can you please let us know status of reported issue.
Thanks,
Vijaya Raghava Rao
Re: Problem with GC, Color & Font objects in TChart
Hi Vijaya,
I'm afraid we haven't implemented it yet. I've incremented the priority of the ticket.
I'm afraid we haven't implemented it yet. I've incremented the priority of the ticket.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |