Release memory in JScript, bulk loading issues and other

xiaoxiao2021-03-06  36

Release memory in JScript, bulk loading issues and other

Release Date: 1/24/2005

| Update Date: 1/24/2005

Nancy Michell Editor

Q: I have some questions about garbage collection in JScript®. I think there is memory leak in Microsoft® Internet Explorer 6.0, but on the other hand, it may be a loop reference problem. In my code, I assume "new object ()" belongs to JScript, and "Document.createElement" belongs to Internet Explorer DOM, so the garbage collector in JScript cannot release the DOM element. Is this correct? What is the best way to avoid this problem?

When you load your code into Internet Explorer 6.0 and click Refresh, you can observe the memory increase in "Task Manager":