> Does the "old" jump and associated instance of JumpClick gets
> correctly garbage collected ?

Yes, if nobody else references this image. Look at the source code
for :
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/HTMLTable.html#setWidget(int,%20int,%20com.google.gwt.user.client.ui.Widget)

You'll see that before setting the widget for that cell, any existing
widget is removed (effectively removing the reference to the image
from the grid) and thus making it available for garbage collection if
there aren't any other references left.

> How can I verify that this is indeed happening ?

* Try creating a new project, where you have only the grid (make it
big) and a button that changes the images.
* Check memory usage for your browser (the browser should show only
that page)
* Click the button to change the images
*Watch the memory usage remain constant (if you keep the resources
monitor on top, you should see the memory usage go up, and then almost
immediately go down)


Hope that helps,

Salvador
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to