Yes,  it should be explicitly remove using  .removeHandler   in onDetach,
else it causes memory leak. I had faced this issue causing Out of Memory
exception .

Thanks,
Snehil Parekh.


On Sun, Jan 24, 2010 at 10:44 PM, Alexander <[email protected]> wrote:

> Cool, Im interested too. Could anyone share some wisdom?
>
> 2010/1/22 shahid <[email protected]>
>
> I am a little confused about event disposal in GWT. Should I always
>> keep a reference to all HandlerRegistration objects whenever I attach
>> a handler to something (e.g. image, links etc.) and then dispose them
>> using .removeHandle upon widget detach ? Will not doing so end up in
>> memory leak ? Or do the events get disposed of upon Widget detach
>> automatically ?
>>
>> --
>> 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]<google-web-toolkit%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>
>
> --
> Regards,
> Alexander
>
>
>  --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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