强制垃圾收集 [英] Forcing Garbage Collection

查看:112
本文介绍了强制垃圾收集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在VBA / Excel 2000中强制垃圾收集?



此问题涉及Excel中的宏语言。
不使用VB.NET来操纵Excel。因此GC.collect()将无法正常工作

解决方案

使用.NET Framework时,无法利用垃圾回收直VBA。 Eric Lippert的或许这篇文章将会有所帮助


Is there a way to force garbage collection in VBA/Excel 2000?

This question refers to the Macro language in Excel. Not using VB .NET to manipulate Excel. So GC.collect() won't work

解决方案

You cannot take advantage of garbage collection provided by the .NET Framework when using straight VBA. Perhaps this article by Eric Lippert will be helpful

这篇关于强制垃圾收集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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