Problem with GC, Color & Font objects in TChart

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
vijay
Newbie
Newbie
Posts: 15
Joined: Mon Jun 07, 2010 12:00 am

Problem with GC, Color & Font objects in TChart

Post by vijay » Wed Sep 08, 2010 1:30 pm

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

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

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

Post by Yeray » Fri Sep 10, 2010 7:51 am

Hi Vijaya,

I've added your suggestion to the wish list to be revised for future releases (TJ71015145)
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

vijay
Newbie
Newbie
Posts: 15
Joined: Mon Jun 07, 2010 12:00 am

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

Post by vijay » Thu Mar 17, 2011 4:58 pm

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

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

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

Post by Yeray » Fri Mar 18, 2011 4:29 pm

Hi Vijaya,

I'm afraid we haven't implemented it yet. I've incremented the priority of the ticket.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply