我正在开发一个Web应用程序,遇到了以下情况。
Dim a as Object
Dim i as Integer = 0
Try
For i=1 to 5
a = new Object()
'Do stuff '
a = Nothing
Next
Catch
Finally
a = Nothing
End Try
在循环中,我需要执行a = Nothing吗?还是垃圾回收器会清理a的内存空间?