SnapFeedbackPolicy resource management bug? [message #189573] |
Wed, 27 July 2005 18:27 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.07531 seconds