Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » PGroup leak problem(PGroup doesn't dispose resources it takes.)
PGroup leak problem [message #501173] Tue, 01 December 2009 12:14 Go to next message
David Crecente is currently offline David Crecente
Messages: 18
Registered: July 2009
Junior Member
Hi all,
I've been using the sleak tool to debug my application and I've seen that PGroup is leaking Color objects.

In my application there are a lot of PGroup and they are disposed and created again depending on the interaction of the user.

The number of resources grow very fast because of PGroup doesn't free these resources and I have no control to avoid this behaviour.
Sleak warn me with the next trace:

[SIZE=6]at org.eclipse.swt.graphics.Device.new_Object(Device.java:853)
at org.eclipse.swt.graphics.Resource.init(Resource.java:85)
at org.eclipse.swt.graphics.Color.<init>(Color.java:112)
at org.eclipse.nebula.widgets.pgroup.RectangleGroupStrategy.ini tialize(RectangleGroupStrategy.java:85)
at org.eclipse.nebula.widgets.pgroup.PGroup.<init>(PGroup.java:123)
at at es.myproject.cliente.ui.util.FactoriaComponentes.crearPGr oup(FactoriaComponentes.java:195)[/SIZE]


Could some tell me how I can free the resources a PGroup has caught?

Thank you in advance.

[Updated on: Tue, 01 December 2009 16:31]

Report message to a moderator

Re: PGroup leak problem [message #501188 is a reply to message #501173] Tue, 01 December 2009 13:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5330
Registered: July 2009
Senior Member
PGroup is Technolog > Nebula so please file a bug there, cc'me and I'll
take a look as soon as I can.

Tom

David Crecente schrieb:
> Hi all,
> I've been using the sleak tool to debug my application and I've seen
> that PGroup is leaking Color objects.
>
> In my application there are a lot of PGroup and they are disposed and
> created again depending on the interaction of the user.
>
> The number of resources grow very fast because of PGroup doesn't free
> these resources and I have no control to avoid this behaviour.
> Sleak warn me with the next trace:
>
>
> Could some tell me how I can free the resources a PGroup has caught?
>
> Thank you in advance.

[Updated on: Mon, 07 December 2009 15:45] by Moderator

Report message to a moderator

Re: PGroup leak problem [message #501203 is a reply to message #501188] Tue, 01 December 2009 14:23 Go to previous message
David Crecente is currently offline David Crecente
Messages: 18
Registered: July 2009
Junior Member
I'm sorry Tom,
I posted a new topic in Nebula Group.

http:// www.eclipse.org/forums/index.php?t=msg&th=158717&sta rt=0&S=f6a698c9ce4d0d5adf955f60ad97bb41
Previous Topic:Issue with Browser and TraverseListener
Next Topic:Is there a practical limit to the number of columns in a Table?
Goto Forum:
  


Current Time: Sat Sep 20 10:13:46 GMT 2014

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

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