<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Two things to avoid for better memory usage</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx</link><description>OK, I never give rules, because they always have exceptions, and I won't start today, but I'm gonna give a couple things that look like rules but aren't. I'll leave it as an exercise to the reader to decide when they should break these almost-rules :)</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Caching Implies Policy</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#60281</link><pubDate>Mon, 19 Jan 2004 22:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:60281</guid><dc:creator>Rico Mariani's WebLog</dc:creator><description /></item><item><title>Caching Implies Policy</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#60548</link><pubDate>Tue, 20 Jan 2004 13:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:60548</guid><dc:creator>Rico Mariani's WebLog</dc:creator><description /></item><item><title>re: Two things to avoid for better memory usage</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#117425</link><pubDate>Wed, 21 Apr 2004 15:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:117425</guid><dc:creator>Jon Skeet</dc:creator><description>&amp;quot;Your first problem is that GC.Collect() doesn't promise a Gen1 collect.&amp;quot;&lt;br&gt;&lt;br&gt;It does according to the documentation for GC.Collect():&lt;br&gt;&lt;br&gt;&amp;quot;Forces garbage collection of all generations.&amp;quot;&lt;br&gt;&lt;br&gt;It doesn't guarantee that everything will *be* collected - objects with finalizers will quite probably get promoted etc - but I don't think an implementation which did a straight gen0 collect would be valid under the documentation above.&lt;br&gt;&lt;br&gt;What am I missing here?&lt;br&gt;</description></item><item><title>re: Two things to avoid for better memory usage</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#117483</link><pubDate>Wed, 21 Apr 2004 17:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:117483</guid><dc:creator>Rico Mariani</dc:creator><description>GC.Collect() gives you a gen2 collect by default (i.e. all generations).  However I find a lot of people seem to call this API without really knowing which generations will be collected at all which is sort of my point.  You could of course do GC.Collect(1) but it leaves you with the bigger problem of trying to guess where it is that your objects have migrated, a game the GC is better suited to play on its own.</description></item><item><title>A Few Good GC Links</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#229553</link><pubDate>Tue, 14 Sep 2004 21:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:229553</guid><dc:creator>Chris Lyon's WebLog</dc:creator><description /></item><item><title>When to call GC.Collect()</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#271831</link><pubDate>Mon, 29 Nov 2004 23:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:271831</guid><dc:creator>Rico Mariani's Performance Tidbits</dc:creator><description /></item><item><title>When to call GC.Collect()</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#271833</link><pubDate>Mon, 29 Nov 2004 23:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:271833</guid><dc:creator>Rico Mariani's Performance Tidbits</dc:creator><description /></item><item><title>Memory and Performance in .NET</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#272164</link><pubDate>Tue, 30 Nov 2004 12:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:272164</guid><dc:creator>Dela's Ramblings</dc:creator><description /></item><item><title>The Memory Reclamation Phase</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#279029</link><pubDate>Thu, 09 Dec 2004 21:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:279029</guid><dc:creator>Bruce Johnson's SOA(P) Box</dc:creator><description /></item><item><title>Top Ten reasons you should subscribe to my blog</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#282207</link><pubDate>Mon, 13 Dec 2004 23:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:282207</guid><dc:creator>Rico Mariani's Performance Tidbits</dc:creator><description /></item><item><title>.net Garbage Collector Tips and Tricks</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#323175</link><pubDate>Fri, 17 Dec 2004 06:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:323175</guid><dc:creator>Tony's Blog</dc:creator><description /></item><item><title>.net Garbage Collector Tips and Tricks</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#333070</link><pubDate>Tue, 28 Dec 2004 05:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:333070</guid><dc:creator>Tony's Blog</dc:creator><description /></item><item><title>Three techniques for tracking down leaks due to undisposed objects</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#408651</link><pubDate>Fri, 15 Apr 2005 20:51:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:408651</guid><dc:creator>Rico Mariani's Performance Tidbits</dc:creator><description>People often ask me for tips/tricks on how to find out which objects are not being properly disposed.&amp;amp;amp;nbsp;&amp;amp;amp;nbsp;But...</description></item><item><title>Rico's Talk from Gamefest</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#725550</link><pubDate>Sat, 26 Aug 2006 20:51:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:725550</guid><dc:creator>XNA Diaries</dc:creator><description>While the slides and recordings from Gamefest are not yet available on the&amp;amp;amp;nbsp;conference website, Rico...</description></item><item><title>Are you getting OutOfMemoryExceptions when uploading large files?</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#1081179</link><pubDate>Wed, 15 Nov 2006 16:39:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1081179</guid><dc:creator>Speaking of which...</dc:creator><description>&lt;p&gt;Problem: Using the WebClient.Upload method for posting large files will eventually leave you stranded with OutOfMemoryExceptions. Cause: WebClient.Upload reads the entire file to memory by default. Resolution: Build your own uploader with just a few lines&lt;/p&gt;
</description></item><item><title>
		  On CLR Memory Management:  Problem Solved&amp;#8230;? &amp;laquo; The Compulsive Coder	</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#1285763</link><pubDate>Thu, 14 Dec 2006 18:23:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1285763</guid><dc:creator>
		  On CLR Memory Management:  Problem Solved…? « The Compulsive Coder	</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://compulsivecoder.com/caffeine/?p=15"&gt;http://compulsivecoder.com/caffeine/?p=15&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>In den Tiefen des .NET Frameworks – Der Garbage Collector</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#2950618</link><pubDate>Mon, 28 May 2007 23:08:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2950618</guid><dc:creator>&lt;dw:daniel_walzenbach runat="server" /&gt;</dc:creator><description>&lt;p&gt;Bei Microsoft zu arbeiten ist Himmel und H&amp;#246;lle zugleich! T&amp;#228;glich finden sich tausende interessante Dinge&lt;/p&gt;
</description></item><item><title>Top 20 .NET Garbage Collection (GC) Articles</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#3452768</link><pubDate>Fri, 22 Jun 2007 07:41:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3452768</guid><dc:creator>roy ashbrook</dc:creator><description>&lt;p&gt;Ah. Garbage Collection... how I love and hate thee. =P I think one sad thing about programming in .net&lt;/p&gt;</description></item><item><title>Top 20 .NET Garbage Collection (GC) Articles</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#3452797</link><pubDate>Fri, 22 Jun 2007 07:43:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3452797</guid><dc:creator>roy ashbrook</dc:creator><description>&lt;p&gt;Ah. Garbage Collection... how I love and hate thee. =P I think one sad thing about programming in .net&lt;/p&gt;</description></item><item><title>Top 20 .NET Garbage Collection (GC) Articles</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#3453189</link><pubDate>Fri, 22 Jun 2007 08:36:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3453189</guid><dc:creator>roy ashbrook</dc:creator><description>&lt;p&gt;Ah. Garbage Collection... how I love and hate thee. =P I think one sad thing about programming in .net&lt;/p&gt;</description></item><item><title>  When to call GC.collect : iCode IT</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#4517649</link><pubDate>Thu, 23 Aug 2007 03:29:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4517649</guid><dc:creator>  When to call GC.collect : iCode IT</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://icodeinc.com/blog/?p=26"&gt;http://icodeinc.com/blog/?p=26&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>

Memorias de Un Aprendiz
 &amp;raquo; Interop with Native Libraries
</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#7357565</link><pubDate>Thu, 31 Jan 2008 23:16:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7357565</guid><dc:creator>

Memorias de Un Aprendiz
 » Interop with Native Libraries
</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://kimerop.exofire.net/wordpress/?p=22"&gt;http://kimerop.exofire.net/wordpress/?p=22&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>   [??????]??????Top 20 .NET Garbage Collection (GC) ??????  : ????????????????????? TAHETA.ORG</title><link>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx#9249902</link><pubDate>Tue, 23 Dec 2008 15:34:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9249902</guid><dc:creator>   [??????]??????Top 20 .NET Garbage Collection (GC) ??????  : ????????????????????? TAHETA.ORG</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.taheta.org/?p=94"&gt;http://www.taheta.org/?p=94&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>