by ZvezdanD » Wed Nov 17, 2010 5:20 pm
I am late for this discussion, but I think I could tell you some observations. I am working on the next version of Tree Report for Child Nodes add-on. The current public implementation is using Web Browser ActiveX with some freeware treeview JavaScript which is called from HTML page. That script is not optimal for large number of nodes, so I want to replace it. I am currently in benchmark phase with several another free treeview Javascripts. One of them has terrible memory leak which raises with number of nodes. I tried with my Location node and its sub-nodes, approx. 20,000 nodes, and I am getting next values for free RAM after closing the dialog box with the ActiveX control: 303 -> 252 -> 227 -> 199 MB. With another two Javascripts that I am trying I don't have such leaks. Testing within Windows XP SP2.
So, maybe you could try your script example with another Web site. Maybe Google which you tried has some Javascript that has leaks. You could take a look at Microsoft article about IE leaks caused by Javascripts:
Understanding and Solving Internet Explorer Leak Patterns, also this:
JavaScript and memory leaks.
By the way, MM versions older then 3.1.0.1205 had memory leaks after closing dialog boxes, especially with ActiveX controls, even without any Javascripts (I already
reported that). To resolve that I am using Script.UnRegisterHandler "wbCtrl_OnChange" and for even older versions which don't have UnRegisterHandler I am using Script.UnRegisterAllEvents, but with it in some cases I need to re-register all needed events again. Unfortunately, UnRegisterHandler and UnRegisterAllEvents cannot resolve problem with the mentioned Javascript that I tried.
I am late for this discussion, but I think I could tell you some observations. I am working on the next version of Tree Report for Child Nodes add-on. The current public implementation is using Web Browser ActiveX with some freeware treeview JavaScript which is called from HTML page. That script is not optimal for large number of nodes, so I want to replace it. I am currently in benchmark phase with several another free treeview Javascripts. One of them has terrible memory leak which raises with number of nodes. I tried with my Location node and its sub-nodes, approx. 20,000 nodes, and I am getting next values for free RAM after closing the dialog box with the ActiveX control: 303 -> 252 -> 227 -> 199 MB. With another two Javascripts that I am trying I don't have such leaks. Testing within Windows XP SP2.
So, maybe you could try your script example with another Web site. Maybe Google which you tried has some Javascript that has leaks. You could take a look at Microsoft article about IE leaks caused by Javascripts: [url=http://msdn.microsoft.com/en-us/library/Bb250448]Understanding and Solving Internet Explorer Leak Patterns[/url], also this: [url=http://www.javascriptkit.com/javatutors/closuresleak/index.shtml]JavaScript and memory leaks[/url].
By the way, MM versions older then 3.1.0.1205 had memory leaks after closing dialog boxes, especially with ActiveX controls, even without any Javascripts (I already [url=http://www.mediamonkey.com/forum/viewtopic.php?f=19&t=35409]reported that[/url]). To resolve that I am using Script.UnRegisterHandler "wbCtrl_OnChange" and for even older versions which don't have UnRegisterHandler I am using Script.UnRegisterAllEvents, but with it in some cases I need to re-register all needed events again. Unfortunately, UnRegisterHandler and UnRegisterAllEvents cannot resolve problem with the mentioned Javascript that I tried.