Skip to main content
June 23, 2010
Question

Memory leak...

  • June 23, 2010
  • 1 reply
  • 2593 views

I have a client who has a home page that I built for him. Basically there are words randomly displayed in the background. Then there are three images that rotate based on a timer. So I have two timers going. I have event listeners added to the images when the app starts. I'm moving the image off the stage when it's not visible. So I'm not adding and removing listeners over and over. However, if you watch the browser memory usage in all three major browsers it climbs several mb's in a minute. Therefore, if the user sits on the homepage the browser crashes. Ideas of why?

Thanks

This topic has been closed for replies.

1 reply

June 23, 2010

Need to see some code...

June 23, 2010

There's thousands of lines of code... I cannot post it here. However, here's the link:

http://www.agencyq.com/

Will two timers cause the memory leak or is this a Flash bug?

June 23, 2010

Two timers are fine... I'm quite sure it's a C-Rock bug, not a Flash bug.