Well, I find the problem:
1. I isolate the JS Lib having memory leak. it is a custom Contextual Menu I developped. 2. I isolate the code doing memory leaks and thats tricky 2.1 I do link.onclick = function() that's bad ! Now I do an Event.observe() 2.2 More Tricky ! A shortcut explanation: - I have an UL/LI tree in the HTML page - onLoad: --- I create a ContextualMenu Object (called ctxMenuInstance) --- I bind it with UL (UL.ctxmenu = ctxMenuInstance) --- I bind "A.menu" onclick with ctxMenuInstance IE never release memory ! - onUnload: --- I break link between UL and ctxmenu (UL.ctxmenu = null) That's working ! Does any body know why IE can't garbage collect the Object I bind to a DOM Element ? Is it a known Memory Leak ? On 2/15/07, Martin Ellis <[EMAIL PROTECTED]> wrote: > > Read my post about how i tracked down the memory leak with morph(), it > should give you some tips on how to find out what is at fault. With so > many factors in your application you should first start to break it > down into smaller chunks to work out what is causing the increase in > memory consumption. > > I.e remove all the effects in the code, and instead just have things > appearing and dissappearing using style.display or similar. > > And just methodically work through your code. > > On 2/15/07, Jean-Philippe Encausse <[EMAIL PROTECTED]> wrote: > > > > Hi ! > > Does anybody know a good tool to detect/understand memory leaks in IE. > > > > I have a big application with > > - Prototype > > - Scriptaculous > > - TinyMCE > > - Custom clean developements > > > > With Firefox, everythings fine and great ! > > With Internet Explorer 6, after 5mn to 10mn of navigation between html > > page, IE is really really slow and takes lot's of memory. > > > > - Is it normal that IE doesn't garbage collect DOM elements between > > http request ? > > - Is there memory leak known when correclty using Prototype's Event > > mecanism ? > > - Is there memory leak with TinyMCE ? > > > > That's really weird and I don't know how to uderstand what append ? > > Best regards, > > -- > > Jean-Philippe Encausse - R&D Jalios SA > > Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com > > GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net > > Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15 > > Do it Once, Use it Twice ~ Do it Twice, Make It Once > > > > > > > > > > > -- Jean-Philippe Encausse - R&D Jalios SA Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15 Do it Once, Use it Twice ~ Do it Twice, Make It Once --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
