PRB: Memory Not Released Using Implicit Assignment With VBScript (192551)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
- Microsoft Visual Basic, Scripting Edition 3.0
- Microsoft JScript 3.0
This article was previously published under Q192551 SYMPTOMS
When 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.
CAUSE
When 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.
RESOLUTION
Variables in VBScript should be explicitly declared using the Dim
statement.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
REFERENCESFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbpending kbprb kbScript KB192551 |
---|
|