If you are using any of the regular GWT methods ... remove() or  
clear() or what not, then yes GWT does remove the elements from DOM  
and break the circular reference. GWT is very diligent at preventing  
memory leaks. That is not always the case if you are using 3rd party  
libraries (that may have less diligent quality control procedures), or  
trying to do something sneaky with JSNI or DOM methods yourself.

IE (particularly ie6) is a horrible platform for dynamic web  
applications due in part to its incredibly slow javascript engine, and  
its penchant for leaking memory like a sieve.

I tend to not use singletons for UI stuff, so you could try to  
instantiate those panels as needed, and simply toss them away when you  
are done with them, and see if that doesn't make things any better.

But again, check what is happening in FF as well and if there is no  
leak then you are likely fighting a losing battle against well known  
bugs in IE.

-jason

On Mar 13, 2009, at 5:54 AM, [email protected] wrote:

>
> How can we make sure that the GUI objects that we created are actually
> removed from DOM?
>
> On Mar 13, 1:58 pm, Vitali Lovich <[email protected]> wrote:
>> Make sure that if you remove panels & whatnot from the page, that you
>> actually also remove the DOM element as well as the GUI one.  I'm  
>> not sure
>> if Google's methods actually do that (if they don't, I think that's  
>> a bug).
>> I'll have to look into it though.
>>
>>
>>
>> On Fri, Mar 13, 2009 at 4:49 AM, LEDUQUE Mickaël  
>> <[email protected]> wrote:
>>
>>> We made some tests and found (using very simple application showing
>>> and removing the same UI in a repeated timer) that IE has huge  
>>> memory
>>> leaks.
>>> With one add/remove cycle every 2 seconds, we had IE taking 4Gb of
>>> memory in 10 hours.
>>> The others tested browsers (firefox, chrome) didn't have that  
>>> problem.- Hide quoted text -
>>
>> - Show quoted text -
> >


--~--~---------~--~----~------------~-------~--~----~
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