高分求解createobject("Internetexplorer.application" IE7对象无法关闭的有关问题
高分求解createobject("Internetexplorer.application" IE7对象无法关闭的问题
高分求解createobject("Internetexplorer.application" IE7对象无法关闭的问题
Dim IE
set ie=createobject("Internetexplorer.application")
IE.Visible = True
IE.Navigate "http://www.mtime.com/member/signin/"
do while ie.readystate<>4
Loop
IE.Document.Forms(0).elements("emailText").value = "admin@123.com"
IE.Document.Forms(0).elements("passwordText").value = "admin"
IE.Document.Forms(0).elements("loginButton").click
'好了
引用都没问题
下面就出问题了
set IE= nothing
这句在你的浏览器为IE6的情况下能让对象自动销毁,但是当你使用IE7时,大量的内存被占用,
跪求IE7的解决办法!
------解决方案--------------------
释放前调用 IE.Quit 试试
------解决方案--------------------
...
IE.Quit
Set IE = Nothing
------解决方案--------------------
CreateObject 函数创建并返回一个对 ActiveX 对象的引用
createobject创建的对象用完后一般要释放该对象变量,如:
IE.Quit
Set IE = Nothing
就是释放该对象变量的语句
高分求解createobject("Internetexplorer.application" IE7对象无法关闭的问题
Dim IE
set ie=createobject("Internetexplorer.application")
IE.Visible = True
IE.Navigate "http://www.mtime.com/member/signin/"
do while ie.readystate<>4
Loop
IE.Document.Forms(0).elements("emailText").value = "admin@123.com"
IE.Document.Forms(0).elements("passwordText").value = "admin"
IE.Document.Forms(0).elements("loginButton").click
'好了
引用都没问题
下面就出问题了
set IE= nothing
这句在你的浏览器为IE6的情况下能让对象自动销毁,但是当你使用IE7时,大量的内存被占用,
跪求IE7的解决办法!
------解决方案--------------------
释放前调用 IE.Quit 试试
------解决方案--------------------
...
IE.Quit
Set IE = Nothing
------解决方案--------------------
CreateObject 函数创建并返回一个对 ActiveX 对象的引用
createobject创建的对象用完后一般要释放该对象变量,如:
IE.Quit
Set IE = Nothing
就是释放该对象变量的语句