Hi all,
Coming from the good old VB6 days we were told to always destroy our objects
as follows:-
Dim obj as New MyObject
' do some work with obj
obj = Nothing
I have been doing this in .Net also for quite a while now. The other day one
of my peers mentioned that this is a BIG NO NO and that I should let the
Garbage Collection process handle this for me.
Can someone share any insight on this?
TIA!
Coming from the good old VB6 days we were told to always destroy our objects
as follows:-
Dim obj as New MyObject
' do some work with obj
obj = Nothing
I have been doing this in .Net also for quite a while now. The other day one
of my peers mentioned that this is a BIG NO NO and that I should let the
Garbage Collection process handle this for me.
Can someone share any insight on this?
TIA!
Comment