Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » disposing widgets in a tableviewer(disposing widgets in a tableviewer)
disposing widgets in a tableviewer [message #643601] Tue, 07 December 2010 15:53 Go to next message
fran81 Missing name is currently offline fran81 Missing nameFriend
Messages: 27
Registered: November 2010
Junior Member
Hello,

I have a tableviewer that can be refreshed and the structure (n. rows/columns) changes each time. The table contains only swt images generated using GC from a ModelProvider.

Even though I dispose the GC images in the ModelProvider, after a number of refreshes the table won't display more images (3 dots instead) and no error message is printed on the console.

What else should I dispose? (i am not getting any no more handles message)

Thanks!
Re: disposing widgets in a tableviewer [message #643678 is a reply to message #643601] Tue, 07 December 2010 19:59 Go to previous messageGo to next message
fran81 Missing name is currently offline fran81 Missing nameFriend
Messages: 27
Registered: November 2010
Junior Member
Actually I found that I was not disposing the images...looks like it works now.
Re: disposing widgets in a tableviewer [message #643757 is a reply to message #643601] Wed, 08 December 2010 07:49 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 12/7/2010 16:53, fran81 wrote:
> Hello,
> I have a tableviewer that can be refreshed and the structure (n.
> rows/columns) changes each time. The table contains only swt images
> generated using GC from a ModelProvider.
>
> Even though I dispose the GC images in the ModelProvider, after a number
> of refreshes the table won't display more images (3 dots instead) and no
> error message is printed on the console.
>
> What else should I dispose? (i am not getting any no more handles message)

This is probably to much hand-waving, we need to see more code to help
here. Without any further information I assume that you forgot to
dispose the images after each new creation. It can also be a refresh
problem - Where does the drawing happen?

HTH & Greetings from Bremen,

Daniel Krügler
Previous Topic:Can I make a Wysiwyg editor based on printing result with SWT?
Next Topic:Drag n Drop on Views
Goto Forum:
  


Current Time: Mon Apr 06 09:28:16 GMT 2020

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

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

Back to the top