VB6 中 Set xxx = Nothing 什么意思?该怎么处理
VB6 中 Set xxx = Nothing 什么意思?
在VB6中,一般 Set xxx = Nothing 起到什么作用?
Dim Conn
Dim Reco
Set Conn = CreateObject("ADODB.Connection")
Set Rec1 = CreateObject("ADODB.Recordset")
后面一般都需要
Set Conn = Nothing
Set Reco = Nothing
它们到底起到什么作用?释放内存?
------解决方案--------------------
将连接的库和记录集清除掉
------解决方案--------------------
取消连接,并释放资源
------解决方案--------------------
不大清楚
------解决方案--------------------
释放实例化的对象。
在VB6中,一般 Set xxx = Nothing 起到什么作用?
Dim Conn
Dim Reco
Set Conn = CreateObject("ADODB.Connection")
Set Rec1 = CreateObject("ADODB.Recordset")
后面一般都需要
Set Conn = Nothing
Set Reco = Nothing
它们到底起到什么作用?释放内存?
------解决方案--------------------
将连接的库和记录集清除掉
------解决方案--------------------
取消连接,并释放资源
------解决方案--------------------
不大清楚
------解决方案--------------------
释放实例化的对象。