Search the web
Sign In
New User? Sign Up
yui3 · YUI 3.x Discussion Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
memory problem   Message List  
Reply | Forward Message #763 of 927 |
Hi,

I've tried to use overlay but I faced a few memory troubles.
Let me explain with a very sample case: I have a function which creates a very
sample overlay (with the bodyContent = DIV).
I use this function to create several overlays on my document.
Of course, I can see a memory usage increase after a certain number of overlays
created.
This is normal.
But what I'd like to do is to cut down the memory usage the moment I decide to
"close" the overlays.
In order to do that I put the overlays (the objects I created with = new
Y.Overlay(..)) in an Array thinking that it should have been enoguh to remove
every items from the Array the moment I no longer use the overlays.
Unfortunately, that doesn't do the trick...
Though I've removed every items from the Array (that's every overlay objects I
created) the memory doesn't go down.
I've already tried other solutions: calling the destroy() method on each array's
items, marking as delete each items, setting as null each item but nothing to
do!
Does anyone have any idea how to cope with this problem?

Thank you

Paolo





Wed Jul 1, 2009 6:33 pm

pao_lino72
Offline Offline
Send Email Send Email

Forward
Message #763 of 927 |
Expand Messages Author Sort by Date

Hi, I've tried to use overlay but I faced a few memory troubles. Let me explain with a very sample case: I have a function which creates a very sample overlay...
pao_lino72
Offline Send Email
Jul 1, 2009
6:33 pm

Calling the destroy() method is a good idea, but after you do that you probably want to drop any references to the *destroyed* Object. Another solution might...
Eric Ferraiuolo
eric.ferraiuolo
Offline Send Email
Jul 1, 2009
9:19 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help