创建者更新(Win 10,64位)后,VBScript占用内存 [英] VBScript consumes memory after Creators Update (Win 10, 64bit)

查看:82
本文介绍了创建者更新(Win 10,64位)后,VBScript占用内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于最新的Windows更新(creators-update,winver给出1703,内部版本15063.483),我们在VBScript访问COM对象时遇到了问题.似乎只是在消耗内存,直到内存超出为止.

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.

我们已经检查了源代码,并将其制作为仅一个使用FileSystemObject的简单vbs文件.

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

除了挂起该循环外,它什么也没做,但是如果O查看任务管理器,我看到进程wscript.exe正在消耗内存.

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.

仅在安装了创建者更新的Windows 10系统上会发生这种情况.

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

任何提示出什么事了吗?也许是VBScript引擎中任何地方的错误?

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

推荐答案

此问题已通过Windows Insider程序-Fast Ring获得的1703版(操作系统内部版本16241.1001)已修复.我认为这最终将在一个普遍可用的版本中推出.

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.

这篇关于创建者更新(Win 10,64位)后,VBScript占用内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆