I'm rather confused as to whether something should be disposed of, or not.
What is the general rule? How can you be sure of doing the right thing? I've
heard about disposing unmanaged resources but what is an unmanaged resource?
Does everything need disposing?
I've been using Webrequest, Webresponse, Streamreaders etc. How can I be
sure of what needs disposing?
Do these get automatically get disposed of at the end of the procedure that
declares them?
Is there any way to check my program to see if I have something that needs
disposing and is still using resources?
-Jerry
What is the general rule? How can you be sure of doing the right thing? I've
heard about disposing unmanaged resources but what is an unmanaged resource?
Does everything need disposing?
I've been using Webrequest, Webresponse, Streamreaders etc. How can I be
sure of what needs disposing?
Do these get automatically get disposed of at the end of the procedure that
declares them?
Is there any way to check my program to see if I have something that needs
disposing and is still using resources?
-Jerry
Comment