Page 1 of 1

Problem with GC, Color & Font objects in TChart

Posted: Wed Sep 08, 2010 1:30 pm
by 15356328
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

Re: Problem with GC, Color & Font objects in TChart

Posted: Fri Sep 10, 2010 7:51 am
by yeray
Hi Vijaya,

I've added your suggestion to the wish list to be revised for future releases (TJ71015145)

Re: Problem with GC, Color & Font objects in TChart

Posted: Thu Mar 17, 2011 4:58 pm
by 15356328
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

Re: Problem with GC, Color & Font objects in TChart

Posted: Fri Mar 18, 2011 4:29 pm
by yeray
Hi Vijaya,

I'm afraid we haven't implemented it yet. I've incremented the priority of the ticket.