M
Mr Flibble
If I dont call the close method on objects I use will they still be
garbage collected ? I'm guessing they are in which case, is there any
point in calling the close method ? In code on Microsoft's site I've
seen :
// Cleanup the streams and the response.
reader.Close ();
dataStream.Close ();
response.Close ();
etc..
but in code published elsewhere on the net, or even here, I dont see
this habit being effected.
So.. comments please Should I go through my code and make sure I'm
closing/quitting all objects that support these methods , or just leave
it to the garbage collector to destroy them.
El Flibble
garbage collected ? I'm guessing they are in which case, is there any
point in calling the close method ? In code on Microsoft's site I've
seen :
// Cleanup the streams and the response.
reader.Close ();
dataStream.Close ();
response.Close ();
etc..
but in code published elsewhere on the net, or even here, I dont see
this habit being effected.
So.. comments please Should I go through my code and make sure I'm
closing/quitting all objects that support these methods , or just leave
it to the garbage collector to destroy them.
El Flibble