Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Disposing of items in the Gallery
Disposing of items in the Gallery [message #589348] Fri, 18 April 2008 03:45
Trevor Campbell is currently offline Trevor CampbellFriend
Messages: 23
Registered: July 2009
Junior Member
I am using the Gallery to show a collection of Images and need to dispose
of the image resources when they are no longer needed.

I tried:
DisposeListener mImageDisposalListener = new DisposeListener()
{
@Override
public void widgetDisposed(DisposeEvent e)
{
GalleryItem item = (GalleryItem) e.widget;
item.getImage().dispose();
}

};
galleryItem.addDisposeListener(mImageDisposalListener);
but have found that the widgetDisposed event is not being fired when the
container is disposed of.

Is this a bug? or should I be trying to track and dispose of all the image
resources myself.
Previous Topic:DateChooserCombo preferred width too small
Next Topic:Grid SetColumnOrder
Goto Forum:
  


Current Time: Sat Dec 20 10:38:16 GMT 2014

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

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