BUG: Memory Leak in JScript Array.toString and Array.toLocaleString Methods (281148)
The information in this article applies to:
This article was previously published under Q281148 SYMPTOMS
If you use the toString or toLocaleString methods of the Array object in JScript, you may notice that the host process does not release the memory that is used by these methods.
This bug does not occur in JScript version 5.0 or earlier.
CAUSE
This problem occurs because a reference to the Array object that is used in these methods is never released.
RESOLUTION
To resolve this problem, use Array.join(",") instead of the Array.toString method.
For example, instead of this
(new Array("hello","world")).toString();
use this:
(new Array("hello","world")).join(",");
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 8/15/2001 |
---|
Keywords: | kbbug kbDSupport kbScript KB281148 |
---|
|