Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » SnapFeedbackPolicy resource management bug?
SnapFeedbackPolicy resource management bug? [message #189573] Wed, 27 July 2005 18:27 Go to next message
Eclipse UserFriend
Originally posted by: rcpnewsgroup_js.unsyn.com

Using the SnapFeedbackPolicy, I just found out that there seems to be a
major resource leak in the color management. The policy keeps calling
FigureUtilities.mixColors in getLocalBackgroundColor(), and does not
dispose of these colors. Using the SWT resource tracking tool Sleak, I
had a 30.000 colors after about ten minutes of editing. After copying
SnapFeedbackPolicy and taking care of the disposal (in
FadeIn.pointFigure and FadeIn.paint) the leak seems to be gone. Am I
missing something here or should I file a bug report?

Johannes
Re: SnapFeedbackPolicy resource management bug? [message #189592 is a reply to message #189573] Wed, 27 July 2005 19:09 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

Add your comments on here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=68979

I think we should fix this even though Color's not a resource, because a
reference count is being maintained and would affect palette-based displays.
It seems the undisposed colors aren't being garbage-collected either.


"J. Stein" <rcpnewsgroup_js@unsyn.com> wrote in message
news:dc8jp7$mo4$1@news.eclipse.org...
> Using the SnapFeedbackPolicy, I just found out that there seems to be a
> major resource leak in the color management. The policy keeps calling
> FigureUtilities.mixColors in getLocalBackgroundColor(), and does not
> dispose of these colors. Using the SWT resource tracking tool Sleak, I
> had a 30.000 colors after about ten minutes of editing. After copying
> SnapFeedbackPolicy and taking care of the disposal (in
> FadeIn.pointFigure and FadeIn.paint) the leak seems to be gone. Am I
> missing something here or should I file a bug report?
>
> Johannes
Previous Topic:How to edit multiple fields from a ViewPart
Next Topic:Figure with Button, or manual Command execution
Goto Forum:
  


Current Time: Tue Dec 03 09:42:02 GMT 2024

Powered by FUDForum. Page generated in 0.07531 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top