G
Guest
I am using Visual Studio 2003 with .NET Framework 1.x on XP SP2.
I am executing the following code (see also
http://dturini.blogspot.com/2004/06/on-past-few-days-im-dealing-with-som
e.html)
HttpWebRequest wr =
(HttpWebRequest)WebRequest.Create("http://www.microsoft.com/");
using (HttpWebResponse wrp = (HttpWebResponse)wr.GetResponse())
{
using (Stream s = wrp.GetResponseStream())
{
using (StreamReader sr = new StreamReader(s))
{
string st = sr.ReadToEnd();
sr.Close();
s.Close();
}
}
}
wr = null;
This call to that list of instructions brings an increase of memory of 4
Mo
(this memory is seen from the task manager concerning this application)
Is-it fixed in the .Net Framework Version 2.0? It seems impossible to
release the memory taken by this list of instructions.
I am executing the following code (see also
http://dturini.blogspot.com/2004/06/on-past-few-days-im-dealing-with-som
e.html)
HttpWebRequest wr =
(HttpWebRequest)WebRequest.Create("http://www.microsoft.com/");
using (HttpWebResponse wrp = (HttpWebResponse)wr.GetResponse())
{
using (Stream s = wrp.GetResponseStream())
{
using (StreamReader sr = new StreamReader(s))
{
string st = sr.ReadToEnd();
sr.Close();
s.Close();
}
}
}
wr = null;
This call to that list of instructions brings an increase of memory of 4
Mo
(this memory is seen from the task manager concerning this application)
Is-it fixed in the .Net Framework Version 2.0? It seems impossible to
release the memory taken by this list of instructions.