Hi Damon, Thanks for reporting this on the forum. Also, thanks for the followup, Ian.
Indeed it would be useful to know which browser this is occurring on, or whether it's happening in hosted mode. At the moment I have no idea why memory would leak when an RPC call is issued on a window close event, but I'll point some other members of the team who might have more insight into what's going on to take a look. Also, this might be related to Issue #1304. The issue described all versions of IE (IE6 and 7) to crash when multiple RPC calls were made from a closing window. The crash could be due to massive amounts of memory leaking, especially since you mentioned that 5 megabytes of memory were leaked each time the RPC call was made on the close event. If that issue looks similar to the one you're experiencing, feel free to update the report with your info and I'll get attention on it from someone on the team. Issue #1304: http://code.google.com/p/google-web-toolkit/issues/detail?id=1304 <http://code.google.com/p/google-web-toolkit/issues/detail?id=1304>Thanks, -Sumit Chandel On Wed, Jun 17, 2009 at 7:32 AM, Ian Bambury <[email protected]> wrote: > Is this in hosted mode or compiled in a browser? > I mentioned this literally years ago for hosted mode and have had various > answers as to the cause. Google's Scott Blum said it was due to arrays of > primitives, but that was back in August 2006 so opinions may have changed. > > If it's outside of hosted mode, it would be useful to know what browsers > are affected (or all). > > Ian > > http://examples.roughian.com > > > 2009/6/17 Damon Lundin <[email protected]> > > >> Well, I did try using a RequestBuilder as I mentioned above and it had >> the same problem. I also made sure that my callback was not an inner >> class of the class making the request in case it was capturing the >> outer class and holding on to it until the response returned. >> >> I did find a solution that works but is a bit of a hack. I add an >> image to the application who's URL points to the servlet I added. >> That does appear to fire off the call to the server on both navigating >> away from the page as well as closing the window. It looks something >> like this: >> >> RootPanel.get().add(new Image(<url to servlet>)); >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
