VBScript consumes memory after Creators Update (Wi

2020-02-29 06:25发布

Since the latest Windows update (creators-update, winver gives 1703, build 15063.483) we have problems with VBScript accessing COM objects. It just seems to consume memory until memory exceeds.

We already have checked our sources and made it to just one simple vbs file that uses the FileSystemObject.

Look at this simple script file:

Dim fso, folder

Set fso = CreateObject("Scripting.FileSystemObject")
If Not fso Is Nothing Then
    Do
        Set folder = Nothing
        Set folder = fso.GetFolder("C:\Users")
    Loop 
    Set folder = Nothing
    Set fso = Nothing
End If

It does just nothing but hanging in that loop, but if O look at the Task Manager I see the process wscript.exe consuming memory.

This doen only happen on Windows 10 systems with the creators update installed.

Any hints whats going wrong? Maybe a bug anywhere in the VBScript engine?

2条回答
做个烂人
2楼-- · 2020-02-29 07:12

Finally Microsoft have a solution in a general release of Windows 10. The Windows 10 Fall Creators Update (OS Version 1709 Build 16299.15) is now available and fixes this issue.

查看更多
迷人小祖宗
3楼-- · 2020-02-29 07:20

This is fixed in Version 1703 (OS Build 16241.1001) obtained via Windows Insider Program - Fast Ring. I assume this will eventually be rolled out in a generally available build.

查看更多
登录 后发表回答