VBScript consumes memory after Creators Update (Win 10, 64bit)

六眼飞鱼酱① 提交于 2019-11-29 23:09:35

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/45274885/vbscript-consumes-memory-after-creators-update-win-10-64bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!