Skip to main content



      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 10:53 Go to next message
Eclipse UserFriend
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 14:59 Go to previous messageGo to next message
Eclipse UserFriend
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 02:49 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 22:56:45 EDT 2025

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

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

Back to the top