S
Scott M.
So then, would this make sense:
Sub Foo
Dim x as new FooFoo()
x.stuff()
'Done using x now, but don't want to wait for dispose to naturally run
x.dispose()
...some operation that will take time...
...some operation that will take time...
...some operation that will take time...
...some operation that will take time...
End Sub
Now, in this case, if there were clean up code in x's dispose method we
could control when it happens, rather than waiting for the GC to get around
to it?
-Scott
Sub Foo
Dim x as new FooFoo()
x.stuff()
'Done using x now, but don't want to wait for dispose to naturally run
x.dispose()
...some operation that will take time...
...some operation that will take time...
...some operation that will take time...
...some operation that will take time...
End Sub
Now, in this case, if there were clean up code in x's dispose method we
could control when it happens, rather than waiting for the GC to get around
to it?
-Scott