Hi, I had a question about deleting something from my computer memory. I used a "Creative Div" tag and I used "Remove" to delete it, but it doesnt completely delete from my memory; even after I used a null value. Can you please tell me how I can completely remove this from my memory. Your help would be most appreciated. Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Gareth Evans
2008-Jan-08 10:54 UTC
Re: Prototype.js - Memory Management / Maintenence question
Alcohol, lots of alcohol (actually, sorry I don''t know, can you provide an example of where you add and remove the item, you may have a circular reference) On 1/8/08, noneothers <golomon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hi, I had a question about deleting something from my computer memory. > > I used a "Creative Div" tag and I used "Remove" to delete it, but it > doesnt completely delete from my memory; even after I used a null > value. Can you please tell me how I can completely remove this from > my memory. Your help would be most appreciated. Thanks! > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Justin Perkins
2008-Jan-08 16:11 UTC
Re: Prototype.js - Memory Management / Maintenence question
> On 1/8/08, noneothers <golomon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi, I had a question about deleting something from my computer memory. > > > > I used a "Creative Div" tag and I used "Remove" to delete it, but it > > doesnt completely delete from my memory; even after I used a null > > value.Setting it to null is the best you can do. The garbage collector only runs on page refreshes (to my knowledge), so if you''ve built an application that mostly involves the user sitting on one page and having lots of Ajax performing DOM manipulation, then you have to be extremely diligent about cleaning up objects/elements when you are done with them. I try to remove all my listeners, and set any internal objects (arrays, hashes, etc.) to null before I destroy instances of my custom classes. If anyone has better advice than that, I would love to hear it, as it''s been a constant battle for me lately. -justin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---