The information in this article applies to:
SYMPTOMSWhen running an application in Internet Explorer that mixes VBScript and JScript, memory consumption and time to execute increase. Memory is not reclaimed until the page is refreshed or the browser closed. CAUSEWhen variables are assigned implicitly and then reassigned (as in a loop), separate copies of the variables appear to be made with each reassignment. Memory allocated to these variables is not reclaimed until the document is closed. RESOLUTIONVariables in VBScript should be explicitly declared using the Dim statement. STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONSteps to Reproduce BehaviorCreate a new HTML page using the code below. Using Performance Monitor or Windows NT Task Manager, monitor the memory usage of explorer.exe as you perform the following steps:
HTML Code Used to Reproduce Behavior
Steps to ResolveChange the VBScript block in the above sample to read as follows:
Perform the steps above and note that memory consumption does not increase.
REFERENCESFor more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.asp http://msdn.microsoft.com/scripting/ Additional query words: VBScript JScript Memory Usage
Keywords : kbIE kbIE400 kbIE401 kbJScript kbScript kbIE401sp1 kbIE500 |
Last Reviewed: April 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |