I am working on a web application and I have run into the following situation.
Dim a as Object Dim i as Integer = 0 Try For i=1 to 5 a = new O
Like everyone stated above you do not need to explicitly set your variables to nothing, as it is handled automatically. However, if for whatever reason you want to force the GC to collect, you can run this:
System.GC.Collect()