Jan Schreuder on .Net

.Net code samples, experiences, observations

View my professional profile on LinkedIn

Recent Posts

Tags

News

  • Inappropriate comments will be deleted at my discretion.

    The information and code samples in this weblog is provided "AS IS" without warranty of any kind, either expressed or implied, including but not limited to the merchantability and/or fitness for a particular purpose.

Community

Email Notifications

Tool suppliers

Tools

General

Microsoft

Favorite blogs

Archives

July 2004 - Posts

.Net Framework Service Pack 3 is coming!

Just read on MSDN that SP3 for .Net is on it's way. You can already download it to perform testing but Microsoft warns you not to install it in production environments yet. While I was browsing through all the issues that were solved, I found a link to this support question regarding memory leaks. One of my favourite topics :-)

Apparently, the following code will leak memory in .Net applications:

for (;;)
{
   try
   {
      throw new System.Exception("I leak.");
   }
   catch
   {
      try
      {
         throw new System.Exception("I do not leak.");
      }
      catch
      {
      }
   }
   Console.Write("Press ENTER to iterate.");
   Console.ReadLine();
}