<?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>Roger Lamb's Microsoft Application Development Blog - All Comments</title><link>http://blogs.msdn.com/b/rogerla/</link><description>I am a Principal Application Development Manager (ADM) in Microsoft Services since 2001 located in Tampa, FL.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Announcing SPDisposeCheck v14.0.4762.1000 Update for SharePoint Development</title><link>http://blogs.msdn.com/b/rogerla/archive/2010/12/13/announcing-spdisposecheck-v14-0-4762-1000-update-for-sharepoint-development.aspx#10416266</link><pubDate>Mon, 06 May 2013 07:05:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10416266</guid><dc:creator>Long</dc:creator><description>&lt;p&gt;void SPLimitedWebPartManagerLeak()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;using (SPSite siteCollection = new SPSite(&amp;quot;http://moss&amp;quot;))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;using (SPWeb web = siteCollection.OpenWeb())&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPFile page = web.GetFile(&amp;quot;Source_Folder_Name/Source_Page&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPLimitedWebPartManager webPartManager =&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;page.GetLimitedWebPartManager(PersonalizationScope.Shared);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// SPWeb object webPartManager.Web leaked.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} // SPWeb object web.Dispose() automatically called.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;} &amp;nbsp;// SPSite object siteCollection.Dispose() automatically called. &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;The latest version cannot detect this memory leak, could you help fix this? thank you.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10416266" width="1" height="1"&gt;</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/b/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#10373510</link><pubDate>Fri, 30 Nov 2012 15:01:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10373510</guid><dc:creator>Joao Marcelo Fachinetto</dc:creator><description>&lt;p&gt;Very good article. &amp;nbsp;It is very helpfull to me. Now i will write my code with the correct form using these patterns!&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10373510" width="1" height="1"&gt;</description></item><item><title>re: try / finally using() SharePoint Dispose()</title><link>http://blogs.msdn.com/b/rogerla/archive/2009/01/14/try-finally-using-sharepoint-dispose.aspx#10321739</link><pubDate>Tue, 19 Jun 2012 13:08:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10321739</guid><dc:creator>David Hamilton</dc:creator><description>&lt;p&gt;Unfortunately, none of this helps if there is no custom development and the errors are coming from SharePoint itself.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10321739" width="1" height="1"&gt;</description></item><item><title>re: SharePoint 2007/2010 “Do Not Dispose Guidance” + SPDisposeCheck</title><link>http://blogs.msdn.com/b/rogerla/archive/2009/11/30/sharepoint-2007-2010-do-not-dispose-guidance-spdisposecheck.aspx#10273857</link><pubDate>Tue, 28 Feb 2012 12:27:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10273857</guid><dc:creator>Mehul Bhuva</dc:creator><description>&lt;p&gt;Do I need to CLOSE the Publishing Site object, for eg:&lt;/p&gt;
&lt;p&gt;PublishingSite psSite = new PublishingSite(site.Url);&lt;/p&gt;
&lt;p&gt;psSite.Close();&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10273857" width="1" height="1"&gt;</description></item><item><title>re: SharePoint 2007/2010 “Do Not Dispose Guidance” + SPDisposeCheck</title><link>http://blogs.msdn.com/b/rogerla/archive/2009/11/30/sharepoint-2007-2010-do-not-dispose-guidance-spdisposecheck.aspx#10200408</link><pubDate>Thu, 25 Aug 2011 16:22:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10200408</guid><dc:creator>Asima</dc:creator><description>&lt;p&gt;may be the below tutorial also helpful&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.fewlines4biju.com/2011/08/spdisposecheck-for-sharepoint-2010.html"&gt;www.fewlines4biju.com/.../spdisposecheck-for-sharepoint-2010.html&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10200408" width="1" height="1"&gt;</description></item><item><title>re: try / finally using() SharePoint Dispose()</title><link>http://blogs.msdn.com/b/rogerla/archive/2009/01/14/try-finally-using-sharepoint-dispose.aspx#10199343</link><pubDate>Wed, 24 Aug 2011 05:51:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10199343</guid><dc:creator>Bijay</dc:creator><description>&lt;p&gt;Chek here too&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.fewlines4biju.com/2011/08/disposing-sharepoint-objects.html"&gt;www.fewlines4biju.com/.../disposing-sharepoint-objects.html&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10199343" width="1" height="1"&gt;</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/b/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#10199342</link><pubDate>Wed, 24 Aug 2011 05:50:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10199342</guid><dc:creator>Bijay</dc:creator><description>&lt;p&gt;Check here too&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.fewlines4biju.com/2011/08/disposing-sharepoint-objects.html"&gt;www.fewlines4biju.com/.../disposing-sharepoint-objects.html&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10199342" width="1" height="1"&gt;</description></item><item><title>re: SharePoint 2007/2010 “Do Not Dispose Guidance” + SPDisposeCheck</title><link>http://blogs.msdn.com/b/rogerla/archive/2009/11/30/sharepoint-2007-2010-do-not-dispose-guidance-spdisposecheck.aspx#10188663</link><pubDate>Thu, 21 Jul 2011 17:06:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10188663</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Does this go for using statements as well?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10188663" width="1" height="1"&gt;</description></item><item><title>re: Announcing SPDisposeCheck v14.0.4762.1000 Update for SharePoint Development</title><link>http://blogs.msdn.com/b/rogerla/archive/2010/12/13/announcing-spdisposecheck-v14-0-4762-1000-update-for-sharepoint-development.aspx#10151783</link><pubDate>Sun, 10 Apr 2011 09:28:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10151783</guid><dc:creator>phettz</dc:creator><description>&lt;p&gt;Tnx for this tool and an interesting blog! &lt;/p&gt;
&lt;p&gt;I&amp;#39;m still learning C# and SharePoint, so this helps me alot on the right path for doing it properly:)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10151783" width="1" height="1"&gt;</description></item><item><title>re: Announcing SPDisposeCheck v14.0.4762.1000 Update for SharePoint Development</title><link>http://blogs.msdn.com/b/rogerla/archive/2010/12/13/announcing-spdisposecheck-v14-0-4762-1000-update-for-sharepoint-development.aspx#10150973</link><pubDate>Thu, 07 Apr 2011 14:45:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10150973</guid><dc:creator>BinaryJam</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;having ran this a few times it sometimes does report false positives, is there a way of marking the offending code with perhaps a comment to tell the checker, ok they&amp;#39;ve marked this as ignore it&amp;#39;s their worry now ?&lt;/p&gt;
&lt;p&gt;This would mean I can then just take the output and generate tasks in TFS to go fix/investigate knowing Im not repeating myself.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10150973" width="1" height="1"&gt;</description></item></channel></rss>