On Dec 6, 8:43 pm, Canam Group <[email protected]> wrote:
> Hi bratliff,
>
> Thanks for your answer.
>
> I tried to use "setTimeout" instead of "setInterval"
> (with "clearTimeout") and I still experience a memory leak in IE.
> Here's an updated example:http://www.canamgroup.ws/GM.nsf/Map4b?OpenPage
>
> I'm doing my tests on my computer, which is a brand new quad core
> computer.
> It does the same memory leak on coworkers' computers as well... but
> only with IE... never with Firefox.
>
> Just keep open the page at the URL above for like 15-20 minutes and
> you'll see how fast IE grabs all the RAM (and never releases it).
> Do you have any other ideas?
>
> Thanks again!

It looks like you are not clearing your "click" event listeners.  Each
cycle adds another "click" event listener to the marker.

I would let Google do the "clearOverlays" work for you in case the API
has to clean up its own references.  I would use a new overlaysArray
rather than reuse the old overlaysArray.  It will give the garbage
collector a chance to clean up remaining references.  Internet
Explorer is known to have difficulty unwinding circular references.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-maps-js-api-v3?hl=en.

Reply via email to