MSScript.ocx Leaks Event Handles in Applications That Repeatedly Create and Destroy Threads (315922)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
This article was previously published under Q315922 SYMPTOMS
When you use the Microsoft Script control (MSScript.ocx) in an environment that repeatedly creates and destroys threads, MSScript.ocx leaks event handles. For each thread that is created and destroyed, an event handle is leaked if one or more objects of the Script control are created on that thread.
WORKAROUND
Do not repeatedly create and destroy threads; use a thread pool instead.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. Microsoft is researching this problem and will post more information in this article when the information becomes available.
Modification Type: | Major | Last Reviewed: | 6/10/2002 |
---|
Keywords: | kbbug KB315922 |
---|
|