<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: .NET garbage collector making me batty</title>
	<atom:link href="http://www.thegatesofdawn.ca/wordpress/posts/2009/06/11/net-garbage-collector-making-me-batty/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegatesofdawn.ca/wordpress/posts/2009/06/11/net-garbage-collector-making-me-batty/</link>
	<description>WARNING: This blog contains writings known to the state of California to cause cancer and birth defects or other reproductive harm.</description>
	<lastBuildDate>Tue, 07 Feb 2012 23:31:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: piper</title>
		<link>http://www.thegatesofdawn.ca/wordpress/posts/2009/06/11/net-garbage-collector-making-me-batty/comment-page-1/#comment-137982</link>
		<dc:creator>piper</dc:creator>
		<pubDate>Fri, 12 Jun 2009 16:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegatesofdawn.ca/wordpress/?p=471#comment-137982</guid>
		<description>The common wisdom seems to be that calling GC.Collect() often does more harm than good.  For one thing, it messes up the aging.  Every time GC.Collect() is called, live objects advance another generation, so in the end even your temporary short-lifetime objects will end up being treated as if they&#039;re long-term.

From what I&#039;ve heard, if you think you need to GC.Collect() often, you&#039;re probably doing something wrong.  But I&#039;m still too new at this C# thing to know the difference.

Personally, I think it was easier when I just used new and delete in C++.  I understand new/delete, and never had any problems with memory leaks.  I knew what I was doing.  I don&#039;t know what the .NET garbage collector is doing 90% of the time.</description>
		<content:encoded><![CDATA[<p>The common wisdom seems to be that calling GC.Collect() often does more harm than good.  For one thing, it messes up the aging.  Every time GC.Collect() is called, live objects advance another generation, so in the end even your temporary short-lifetime objects will end up being treated as if they&#8217;re long-term.</p>
<p>From what I&#8217;ve heard, if you think you need to GC.Collect() often, you&#8217;re probably doing something wrong.  But I&#8217;m still too new at this C# thing to know the difference.</p>
<p>Personally, I think it was easier when I just used new and delete in C++.  I understand new/delete, and never had any problems with memory leaks.  I knew what I was doing.  I don&#8217;t know what the .NET garbage collector is doing 90% of the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce Pierson</title>
		<link>http://www.thegatesofdawn.ca/wordpress/posts/2009/06/11/net-garbage-collector-making-me-batty/comment-page-1/#comment-137979</link>
		<dc:creator>Bruce Pierson</dc:creator>
		<pubDate>Fri, 12 Jun 2009 15:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegatesofdawn.ca/wordpress/?p=471#comment-137979</guid>
		<description>Wow, thanks for this. I&#039;ve been having bleeding eyeballs lately too from just this issue. I&#039;m actually looking for an article or something that might be titled &quot;how to make your classes easy to garbage collect&quot; or something like that, because this issue is just chewing up an enormous amount of my time.

I also have sprinkled &quot;x = null&quot; throughout my code (after doing everything possible to &quot;x&quot; to make sure it had nothing pointing to it), and it does seem to make a difference, but it&#039;s sure hard to understand why.

Also, I&#039;m beginning to think that the first rule of GC.Collect() should be &quot;call early and often&quot;, especially with the GC.Collect(int generation) version.</description>
		<content:encoded><![CDATA[<p>Wow, thanks for this. I&#8217;ve been having bleeding eyeballs lately too from just this issue. I&#8217;m actually looking for an article or something that might be titled &#8220;how to make your classes easy to garbage collect&#8221; or something like that, because this issue is just chewing up an enormous amount of my time.</p>
<p>I also have sprinkled &#8220;x = null&#8221; throughout my code (after doing everything possible to &#8220;x&#8221; to make sure it had nothing pointing to it), and it does seem to make a difference, but it&#8217;s sure hard to understand why.</p>
<p>Also, I&#8217;m beginning to think that the first rule of GC.Collect() should be &#8220;call early and often&#8221;, especially with the GC.Collect(int generation) version.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

