<?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>SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx</link><description>Last Updated: January 30, 2009 [New] – The original MSDN article Best Practices: Using Disposable Windows SharePoint Services Objects was updated 1/30/2009 and the Dispose() guidance is now in sync with the content on this blog and the new SPDisposeCheck</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Blog Postings  &amp;raquo; SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#7661227</link><pubDate>Wed, 13 Feb 2008 06:00:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7661227</guid><dc:creator>MSDN Blog Postings  » SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2008/02/12/sharepoint-2007-and-wss-30-dispose-patterns-by-example/"&gt;http://msdnrss.thecoderblogs.com/2008/02/12/sharepoint-2007-and-wss-30-dispose-patterns-by-example/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Link Listing - February 12, 2008</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#7673821</link><pubDate>Wed, 13 Feb 2008 16:35:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7673821</guid><dc:creator>Christopher Steen</dc:creator><description>&lt;p&gt;Sharepoint SharePoint 2007 and WSS 3.0 Dispose Patterns by Example [Via: Roger Lamb ] WPF WPF 3.5 Data...&lt;/p&gt;
</description></item><item><title>Roger joins the fray ... w00t!</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#7678165</link><pubDate>Wed, 13 Feb 2008 20:38:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7678165</guid><dc:creator>Don Smith</dc:creator><description>&lt;p&gt;My good friend Roger Lamb has just joined the blogsphere and I assure you that if you are interested&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#7694674</link><pubDate>Thu, 14 Feb 2008 18:17:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7694674</guid><dc:creator>arangas</dc:creator><description>&lt;p&gt;Hi Roger,&lt;/p&gt;
&lt;p&gt;This article is a good reference as it covers more than the MSDN best practices article. It would be great to see this post updated as you think of more information. I noticed that you don't mention (not) disposing when using SPContext, which would be a good addition (and what about cases such as SPContext.Current.Site.RootWeb?). Using the ULS logs to find which parts of your code aren't disposing correctly would be great too.&lt;/p&gt;
&lt;p&gt;Thanks again, Alex.&lt;/p&gt;
</description></item><item><title>Welcome Roger Lamb to the blog space</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#7719164</link><pubDate>Fri, 15 Feb 2008 20:45:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7719164</guid><dc:creator>Steve Sheppard's Blog</dc:creator><description>&lt;p&gt;For his first post he has provided a bunch of examples of dispose patterns for SharePoint that will be&lt;/p&gt;
</description></item><item><title>Welcome Roger Lamb to the blog space</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#7719288</link><pubDate>Fri, 15 Feb 2008 20:53:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7719288</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;For his first post he has provided a bunch of examples of dispose patterns for SharePoint that will be&lt;/p&gt;
</description></item><item><title>SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#7823272</link><pubDate>Wed, 20 Feb 2008 23:35:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7823272</guid><dc:creator>Miguel Isidoro</dc:creator><description>&lt;p&gt;When developing for the SharePoint platform, developers should be very careful in using the SharePoint&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#7839651</link><pubDate>Thu, 21 Feb 2008 19:38:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7839651</guid><dc:creator>MaximeB</dc:creator><description>&lt;p&gt;Very good job detailing a lot more the default principles on disposing objects.&lt;/p&gt;
&lt;p&gt;Maxime&lt;/p&gt;
</description></item><item><title>Gestion du Dispose : Attention au Memory Pressure sous SharePoint (et donc comment faire mieux)</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#7893444</link><pubDate>Mon, 25 Feb 2008 18:19:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7893444</guid><dc:creator>The Mit's Blog</dc:creator><description>&lt;p&gt;Un post qui vient un poil en doublon de ceux qui relaye 2 nouveaux articles de blog mais ces posts sont&lt;/p&gt;
</description></item><item><title>WSS 3.0 &amp; MOSS: Recopilación de enlaces interesantes XV</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#7897399</link><pubDate>Tue, 26 Feb 2008 03:00:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7897399</guid><dc:creator>Blog del CIIN</dc:creator><description>&lt;p&gt;Hac&amp;#237;a tiempo que no revisaba mis RSS sobre SharePoint , y claro me ha costado ponerme al d&amp;#237;a, y aqu&amp;#237;&lt;/p&gt;
</description></item><item><title>SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8045970</link><pubDate>Wed, 05 Mar 2008 09:02:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8045970</guid><dc:creator>Mirrored Blogs</dc:creator><description>&lt;p&gt;A very good article about Sharepoint 2007 and WSS 3.0 Dispose Patterns: Roger Lamb&amp;amp;#39;s SharePoint Developer&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8333627</link><pubDate>Mon, 24 Mar 2008 18:26:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8333627</guid><dc:creator>bazztrap</dc:creator><description>&lt;p&gt;Basically any new instance has to be disposed, I am curious about objects which are referenced from different events like &amp;nbsp;EvenHandler properties properties.OpenWeb() &amp;nbsp; &lt;/p&gt;
</description></item><item><title>SharePoint Kaffeetasse #51</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8347553</link><pubDate>Tue, 01 Apr 2008 10:44:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8347553</guid><dc:creator>Mirrored Blogs</dc:creator><description>&lt;p&gt;Tipps Sending alerts to groups in Sharepoint 2007 SharePoint 2007 Permissions Matrix What is ReGhost&lt;/p&gt;
</description></item><item><title>Memory Leak in SPLimitedWebPartManager (a.k.a. IDisposables Containing IDisposables)</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8373001</link><pubDate>Wed, 09 Apr 2008 21:45:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8373001</guid><dc:creator>Random Musings of Jeremy Jameson</dc:creator><description>&lt;p&gt;Back in February, Roger Lamb kicked off his MSDN blog with a great post ( SharePoint 2007 and WSS 3.0&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8402986</link><pubDate>Thu, 17 Apr 2008 16:54:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8402986</guid><dc:creator>rlasker3</dc:creator><description>&lt;p&gt;I also want to know about the SPFeature.Parent. I have seen arguments either way and would prefer something a little definitive.&lt;/p&gt;
</description></item><item><title>SharePoint 2007 and WSS 3.0 Dispose Patterns by Example </title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8462388</link><pubDate>Tue, 06 May 2008 10:03:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8462388</guid><dc:creator>SaurabhKV</dc:creator><description>&lt;p&gt;When writing customized SharePoint code you need to be aware of the scope and context of each SPSite&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8483419</link><pubDate>Sat, 10 May 2008 06:18:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8483419</guid><dc:creator>buzza</dc:creator><description>&lt;p&gt;Microsoft.SharePoint.SPList.BreakRoleInheritance.&lt;/p&gt;
&lt;p&gt;Consider this:&lt;/p&gt;
&lt;p&gt;To get a SPList object, you need to have a SPWeb object (is there any other way?), wouldn't that be the same (reference as well) as the SPList.ParentWeb object. &amp;nbsp;Now if this SPWeb object came from the current context then it should not be disposed. &amp;nbsp;If the SPWeb object was not created by the current context then it should be disposed.&lt;/p&gt;
&lt;p&gt;using (SPSite mySite = new SPSite(&amp;quot;&lt;a rel="nofollow" target="_new" href="http://server&amp;quot;"&gt;http://server&amp;quot;&lt;/a&gt;))&lt;/p&gt;
&lt;p&gt;using (SPWeb myWeb = mySite.OpenWeb())&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPList myList = myWeb.Lists[0];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;// is myList.ParentWeb always the same reference as myWeb&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;// if not - what circumstances is it not.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;// if so - parentweb is disposed with the using statement&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Are we sure we need to dispose SPList.ParentWeb ???&lt;/p&gt;
&lt;p&gt;Is this correct ??&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8511702</link><pubDate>Fri, 16 May 2008 10:31:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8511702</guid><dc:creator>Stian Kirkeberg</dc:creator><description>&lt;p&gt;Great article, Robert! Thank you.&lt;/p&gt;
&lt;p&gt;What do you think should be the best way to handle a situation like this:&lt;/p&gt;
&lt;p&gt;using (SPSite mySite = new SPSite(&amp;quot;&lt;a rel="nofollow" target="_new" href="http://server&amp;quot;"&gt;http://server&amp;quot;&lt;/a&gt;))&lt;/p&gt;
&lt;p&gt;using (SPWeb myWeb = mySite.OpenWeb())&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;myMethod(myWeb);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;private void myMethod(SPWeb web)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;// work with the web object&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; // should dispose be called? What about the reference copy on the stack?&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;And situation 2:&lt;/p&gt;
&lt;p&gt;private void myMethod(SPWeb web)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;// work with the web object&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; mySite.OpenWeb()) // then open another web....&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; // call dispose.&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Do you agree? Or can you suggest another pattern to avoid these situations?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>SharePoint 2007 : Extension Method (DeleteAllItems)</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8522077</link><pubDate>Tue, 20 May 2008 11:03:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8522077</guid><dc:creator>Philippe Sentenac [MVP SharePoint]</dc:creator><description>&lt;p&gt;Apr&amp;#232;s vous avoir parl&amp;#233; de ce que l'on pouvait faire avec les extensions de m&amp;#233;thodes et un peu de r&amp;#233;flection,&lt;/p&gt;
</description></item><item><title>Troubleshooting SPSite/SPWeb leaks in WSS v3 and MOSS 2007</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8556084</link><pubDate>Wed, 28 May 2008 08:58:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8556084</guid><dc:creator>Shared Points for SharePoint...</dc:creator><description>&lt;p&gt;Stefan Gossner has published a great article on the subject: In an earlier article I have discussed that&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8557414</link><pubDate>Thu, 29 May 2008 11:07:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8557414</guid><dc:creator>sergioko</dc:creator><description>&lt;p&gt;Does MS have a plan to close any of this leaks like in BreakRoleInheritance() internally? What happens to our perfect existing code, if next &amp;nbsp;MOSS/WSS service pack will invent a proper dispose of ParentWeb in there? Double disposal?&lt;/p&gt;
</description></item><item><title>Asignación CAS de Sharepoint por contexto de usuario</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8572220</link><pubDate>Wed, 04 Jun 2008 01:00:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8572220</guid><dc:creator>Mario Cortés Flores</dc:creator><description>&lt;p&gt;Puesta en situaci&amp;#243;n En uno de nuestros proyectos hemos tenido que manejar el contexto del usuario en&lt;/p&gt;
</description></item><item><title>Оптимизация кода 2</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8611235</link><pubDate>Tue, 17 Jun 2008 15:41:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8611235</guid><dc:creator>First Hand</dc:creator><description>&lt;p&gt;Источник...Смысл в том, чтобы уничтожать объекты SPweb, SPSite и т.п. методом Dispose() принудительно....&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8637411</link><pubDate>Sun, 22 Jun 2008 11:22:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8637411</guid><dc:creator>ajayrsawant</dc:creator><description>&lt;p&gt;We have code where at times we'll be returning an SPWeb object from a function. So for example:&lt;/p&gt;
&lt;p&gt;public SPWeb getDeptWeb()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;SPWeb deptWeb = SpSite.OpenWeb(SpContext.Web.ID);&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;return deptWeb;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;How can we dispose of the SPWeb object in this instance? Or is it sufficient to dispose it where we're accepting the returned parameter?&lt;/p&gt;
</description></item><item><title>Programmierung: Potentielle Memory-Leaks bei SPSite und SPWeb</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8716391</link><pubDate>Thu, 10 Jul 2008 13:45:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8716391</guid><dc:creator>Meine SharePoint-Notizen</dc:creator><description>&lt;p&gt;Beim Programmieren im SharePoint-Umfeld sollte man gro&amp;#223;en Wert auf saubere und sicherer Programmierung&lt;/p&gt;
</description></item><item><title>Üks asjalik Sharepointi postitus Dispose -i teemal</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8847210</link><pubDate>Mon, 11 Aug 2008 00:52:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8847210</guid><dc:creator>Iga lahendus tekitab uusi probleeme ehk alati võib leida veel ühe bugi.</dc:creator><description>&lt;p&gt;Maailmas on palju blogijaid ja nende heade ning v&amp;#228;&amp;#228;rtuslike postituste leidmine ei ole alati lihtne ega&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8952837</link><pubDate>Mon, 15 Sep 2008 19:33:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8952837</guid><dc:creator>miguel.isidoro@create.pt</dc:creator><description>&lt;p&gt;Hello Roger,&lt;/p&gt;
&lt;p&gt;A few remarks on your post. I think it is great and covers a large amount of situations. Two types of situations I noticed are not covered:&lt;/p&gt;
&lt;p&gt;Workflows:&lt;/p&gt;
&lt;p&gt;workflowProperties.Web, workflowProperties.Site and workflowProperties.Item.Web don't need to be disposed.&lt;/p&gt;
&lt;p&gt;Event handlers:&lt;/p&gt;
&lt;p&gt;properties.ListItem.Web&lt;/p&gt;
&lt;p&gt;properties.ListItem.Web.Site&lt;/p&gt;
&lt;p&gt;About these two, I am not sure if they need to be disposed. Do you know if these need to be disposed?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Miguel&lt;/p&gt;
</description></item><item><title>MSDN Link: SharePoint Best Practices - Disposing WSS Objects</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8954342</link><pubDate>Tue, 16 Sep 2008 23:22:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8954342</guid><dc:creator>SPSherm.MyBlog</dc:creator><description>&lt;p&gt;Might as well dive right in and make the inaugural posting useful... Anyone who&amp;amp;#39;s done some development&lt;/p&gt;
</description></item><item><title>Best Practices: Using Disposable Windows SharePoint Services Objects</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8960923</link><pubDate>Mon, 22 Sep 2008 10:03:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8960923</guid><dc:creator>SharePoint</dc:creator><description>&lt;p&gt;The URL given below takes you to an very useful article which describes the appropriate ways to write your code when using Microsoft Windows SharePoint Services objects so that you can avoid retaining the objects in memory with the Microsoft .NET Framework.&lt;/p&gt;
</description></item><item><title>SharePoint Performance optimizations</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8963352</link><pubDate>Wed, 24 Sep 2008 11:28:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8963352</guid><dc:creator>Marwan Tarek's blog [MVP SharePoint]</dc:creator><description>&lt;p&gt;Performance is perspective that all the developers forget during development and it pops up and the end&lt;/p&gt;
</description></item><item><title>SharePoint 2007 and WSS 3.0 Dispose Patterns by Example </title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8965063</link><pubDate>Thu, 25 Sep 2008 17:11:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8965063</guid><dc:creator>laputa'sky</dc:creator><description>&lt;p&gt;from:&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-b"&gt;http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-b&lt;/a&gt;...&lt;/p&gt;
</description></item><item><title>SharePoint 2007 and WSS 3.0 Dispose Patterns by Example </title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#8965080</link><pubDate>Thu, 25 Sep 2008 17:26:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8965080</guid><dc:creator>laputa'sky</dc:creator><description>&lt;p&gt;from:&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-b"&gt;http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-b&lt;/a&gt;...&lt;/p&gt;
</description></item><item><title>Utilizar "Dispose()" correctamente en MOSS 2007</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9000562</link><pubDate>Wed, 15 Oct 2008 15:08:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9000562</guid><dc:creator>Mirrored Blogs</dc:creator><description>&lt;p&gt;He encontrado esta p&amp;#225;gina donde nos explican la manera correcta de utilizar el Dispose() cuando accedemos&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9010253</link><pubDate>Tue, 21 Oct 2008 22:44:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9010253</guid><dc:creator>Sven De Bont</dc:creator><description>&lt;p&gt;Excellent article!&lt;/p&gt;
&lt;p&gt;Got us through a very annoying 'OutOfMemeryExcepton' when modifying a webpart page in 6000 childwebs (the culprit was the SPLimitedWebPartManager)&lt;/p&gt;
</description></item><item><title>Best Practices - SharePoint Object Model for Performance Tuning</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9016631</link><pubDate>Sun, 26 Oct 2008 14:30:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9016631</guid><dc:creator>Sowmyan's SharePoint Developer Blog</dc:creator><description>&lt;p&gt;I am writing this post by inspired by couple of performance related cases that I had been worked with&lt;/p&gt;
</description></item><item><title>Disposal of objects in WSS and SharePoint 2007</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9023729</link><pubDate>Thu, 30 Oct 2008 09:08:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9023729</guid><dc:creator>sdbonline.com</dc:creator><description>&lt;p&gt;Disposal of objects in WSS and SharePoint 2007&lt;/p&gt;
</description></item><item><title>Getting To the Root (Well Almost) - Navigating the SPWeb Hierarchy</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9060874</link><pubDate>Wed, 12 Nov 2008 01:13:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9060874</guid><dc:creator>Adventures in Consulting</dc:creator><description>&lt;p&gt;Recently I was faced with the problem of finding an ancestor web (SPWeb object) of the current web. The&lt;/p&gt;
</description></item><item><title>Moss 2007 dispose issues, don't be a the victim</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9066981</link><pubDate>Thu, 13 Nov 2008 21:39:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9066981</guid><dc:creator>Rick's BizTalk Debugging, Troubleshooting Tips and Experiences</dc:creator><description>&lt;p&gt;SPDisposeCheck tool officially announced Last year I leveraged a good friend and coworker (Roger Lamb)&lt;/p&gt;
</description></item><item><title>手动释放spsite和spweb</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9109062</link><pubDate>Mon, 17 Nov 2008 13:42:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9109062</guid><dc:creator>天使の泪</dc:creator><description>&lt;p&gt;from:RogerLamb&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispo"&gt;http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispo&lt;/a&gt;...&lt;/p&gt;
</description></item><item><title>SharePoint - The New Oracle</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9292578</link><pubDate>Thu, 08 Jan 2009 05:01:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9292578</guid><dc:creator>Andreas Zenker</dc:creator><description>&lt;p&gt;I was posting a WPF question on stackoverflow and I took a few minutes to tie up loose ends on a question&lt;/p&gt;
</description></item><item><title>When to Dispose SharePoint objects</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9320255</link><pubDate>Thu, 15 Jan 2009 11:08:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9320255</guid><dc:creator>Confluence: SharePoint Development Wiki</dc:creator><description>&lt;p&gt;SPSite and SPWeb implement the IDisposable interface&lt;/p&gt;
</description></item><item><title>SPDisposeCheck v1.3.1 is released</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9383419</link><pubDate>Thu, 29 Jan 2009 20:46:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9383419</guid><dc:creator>Paul Andrew</dc:creator><description>&lt;p&gt;SPDisposeCheck is a tool to help SharePoint Developers follow memory management best practices when using&lt;/p&gt;
</description></item><item><title>Outil : SPDisposeCheck est disponible</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9383686</link><pubDate>Fri, 30 Jan 2009 00:33:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9383686</guid><dc:creator>Blog Tech</dc:creator><description>&lt;p&gt;Outil : SPDisposeCheck est disponible&lt;/p&gt;
</description></item><item><title>SPDisposeCheck liberado en MSDN Code Gallery!</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9383785</link><pubDate>Fri, 30 Jan 2009 01:23:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9383785</guid><dc:creator>Blog del CIIN</dc:creator><description>&lt;p&gt;Tal y como nos comenta Paul Andrew en este post , Microsoft acaba de liberar en MSDN Code Gallery la&lt;/p&gt;
</description></item><item><title>SharePoint 2007 : Dispose Patterns et l'outil SPDisposeCheck</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9384498</link><pubDate>Fri, 30 Jan 2009 11:41:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9384498</guid><dc:creator>Philippe Sentenac [MVP SharePoint]</dc:creator><description>&lt;p&gt;[via Paul Andrew ] SPDisposeCheck avait &amp;#233;t&amp;#233; pr&amp;#233;sent&amp;#233; derni&amp;#232;rement sur le blog de l'&amp;#233;quipe SharePoint&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9384725</link><pubDate>Fri, 30 Jan 2009 16:01:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9384725</guid><dc:creator>m_3ryan</dc:creator><description>&lt;p&gt;I thinks the best practice on this article is to use the object Microsoft.SharePoint.WebControls.SPControl and get rid of thinking about disposing again.&lt;/p&gt;
</description></item><item><title>Automate SharePoint Dispose() code reviews with SPDisposeCheck</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9385481</link><pubDate>Sat, 31 Jan 2009 02:15:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9385481</guid><dc:creator>Roger Lamb's SharePoint Developer Blog</dc:creator><description>&lt;p&gt;Today the Microsoft SharePoint Product Team announced the SPDisposeCheck utility here and also at Paul&lt;/p&gt;
</description></item><item><title>SPDisposeCheck Tool Public Release</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9393043</link><pubDate>Tue, 03 Feb 2009 14:19:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9393043</guid><dc:creator>Mirrored Blogs</dc:creator><description>&lt;p&gt;Body: I&amp;amp;#39;ve been eagerly awaiting the public release of the SP Dispose Check Tool and now its available&lt;/p&gt;
</description></item><item><title>SPDisposeCheck – Fakty i Akty :)</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9393234</link><pubDate>Tue, 03 Feb 2009 17:08:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9393234</guid><dc:creator>.neting in the free world</dc:creator><description>&lt;p&gt;SPDisposeCheck jest już od paru dni dostępny , i muszę powiedzieć, że tool mi się podoba – choć mam wrażenie&lt;/p&gt;
</description></item><item><title>Links for today (2009.02.04)</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9395234</link><pubDate>Wed, 04 Feb 2009 12:54:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9395234</guid><dc:creator>My.Mountains[]</dc:creator><description>&lt;p&gt;New Tech Meetup Birthday &amp;amp;amp; Pecha Kucha Night MS Rampup - SharePoint for Developers Track &amp;amp;ndash;&lt;/p&gt;
</description></item><item><title>Best Practice en el desarrollo con Sharepoint</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9413616</link><pubDate>Thu, 12 Feb 2009 01:52:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9413616</guid><dc:creator>Mario Cortés Flores</dc:creator><description>&lt;p&gt;Hay una cosa que tenemos que tener clara y es que Sharepoint no deja de ser un producto m&amp;#225;s o menos cerrado&lt;/p&gt;
</description></item><item><title>SPDisposeCheck - Fakty i Akty :)</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9425654</link><pubDate>Mon, 16 Feb 2009 13:11:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9425654</guid><dc:creator>.neting in the free world</dc:creator><description>&lt;p&gt;SPDisposeCheck jest już od paru dni dostępny , i muszę powiedzieć, że tool mi się podoba – choć mam wrażenie&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9447682</link><pubDate>Fri, 27 Feb 2009 03:00:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9447682</guid><dc:creator>RichardWillis</dc:creator><description>&lt;p&gt;I'm the project co-ordinator for the SharePoint Learning Kit at &lt;a rel="nofollow" target="_new" href="http://www.codeplex.com/slk"&gt;http://www.codeplex.com/slk&lt;/a&gt;. As it's a great tool, I'd love to use SPDisposeCheck on it, but it checks to see if the file name begins with Microsoft (it does) and then if I rename the file, if any namespace begins with Microsoft (they all do) and then skips the assembly. Is there any possibility of adding an option to not skip Microsoft assemblies. And before you ask, we can't change the namespaces as it was originally a Microsoft project and it would break all existing installations.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;
</description></item><item><title>TechDays 2009 - Enhancing the SharePoint developer experience - Supporting links</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9470671</link><pubDate>Wed, 11 Mar 2009 18:54:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9470671</guid><dc:creator>Microsoft RealDolmen blogs</dc:creator><description>&lt;p&gt;TechDays 2009 - Enhancing the SharePoint developer experience - Supporting links&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9470681</link><pubDate>Wed, 11 Mar 2009 18:59:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9470681</guid><dc:creator>sergioko</dc:creator><description>&lt;p&gt;Hello Roger,&lt;/p&gt;
&lt;p&gt;One more situation I noticed, when disposing does bad, and not disposing is probably bad too ;-)&lt;/p&gt;
&lt;p&gt;In CreateChildControl() method of a webpart, I use this pattern to render a field of a list item from another web:&lt;/p&gt;
&lt;p&gt;using (SPSite site = new SPSite(&amp;quot;&lt;a rel="nofollow" target="_new" href="http://address&amp;quot;"&gt;http://address&amp;quot;&lt;/a&gt;))&lt;/p&gt;
&lt;p&gt;using (SPWeb web = site.OpenWeb())&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BaseFieldControl c = field.FieldRenderingControl;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c.ItemContext = SPContext.GetContext(HttpContext.Current, item.ID, list.ID, web);&lt;/p&gt;
&lt;p&gt;	...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Controls.Add(c);&lt;/p&gt;
&lt;p&gt;	...&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;The problem is that the BaseFieldControl keeps a reference of the web object (through the ItemContext) and at its rendering stage the web has already been invalidated and exception says &amp;quot;List does not exist The page you selected contains a list that does not exist. It may have been deleted by another user..&amp;quot;&lt;/p&gt;
&lt;p&gt;If I don't dispose site and web objects with that 'using' directive, everything works fine, but I'm afraid the memory going to leak somewhere... How can I control the disposing of context objects like this?&lt;/p&gt;
</description></item><item><title>To Dispose or not to Dispose -- that is the question</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9489941</link><pubDate>Thu, 19 Mar 2009 16:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9489941</guid><dc:creator>Random Musings of Jeremy Jameson</dc:creator><description>&lt;p&gt;Last Saturday, another team member sent an email out to the team inquiring about the &amp;quot;MOSS object disposal&lt;/p&gt;
</description></item><item><title>SharePoint 2007 : SPDisposeCheck ne verifierait pas tout les patterns de dispose connus</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9492124</link><pubDate>Fri, 20 Mar 2009 12:43:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9492124</guid><dc:creator>Philippe Sentenac [MVP SharePoint]</dc:creator><description>&lt;p&gt;[via Stephen Vick’s Blog ] Dans la s&amp;#233;rie des nouvelles qui ne font pas plaisir, il semblerait que SPDisposeCheck&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9535205</link><pubDate>Tue, 07 Apr 2009 07:56:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9535205</guid><dc:creator>Dinesh Bolkensteyn</dc:creator><description>&lt;p&gt;Hi Roger,&lt;/p&gt;
&lt;p&gt;It would be cool if SPDisposeCheck could not only check for memory leaks, but also for invalid disposes (if case someone tries to free something that is part of the automagically SharePoint framework managed objects)&lt;/p&gt;
&lt;p&gt;Of course there's SPContext, but from what Miguel Isidoro (see previous comment) said, it also includes workflows and list event handlers, and maybe even more.&lt;/p&gt;
&lt;p&gt;Many thanks !&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9535856</link><pubDate>Tue, 07 Apr 2009 15:43:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9535856</guid><dc:creator>Roger Lamb</dc:creator><description>&lt;p&gt;Hi Dinesh, I agree.. we are reviewing adding this feature to the approved list of 'do not dispose' mentioned in the msdn whitepaper and my blog.&lt;/p&gt;
</description></item><item><title>[SharePoint 2007] La famille SharePointOfView s’agrandit : SharePoint FxCop Rules</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9546800</link><pubDate>Mon, 13 Apr 2009 11:53:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9546800</guid><dc:creator>Adrien Siffermann</dc:creator><description>&lt;p&gt;[English version @ &lt;a rel="nofollow" target="_new" href="http://sovfxcoprules.codeplex.com"&gt;http://sovfxcoprules.codeplex.com&lt;/a&gt; ] Apr&amp;#232;s : SharePointOfView , qui regroupe un ensemble&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9550913</link><pubDate>Wed, 15 Apr 2009 18:00:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9550913</guid><dc:creator>mpeyer</dc:creator><description>&lt;p&gt;Hi Roger&lt;/p&gt;
&lt;p&gt;I couldn't find an advice on how to deal with the Workflow Context object. I'm developing a custom SPD workflow action and there I retrieve the DependenyProperty __Context which is of type Microsoft.SharePoint.WorkflowActions.WorkflowContext. This object has a parameter Site and also Web and implements IDisplosable. Now I'm wondering if I have to dispose this WorkflowContext object by myself or not.&lt;/p&gt;
&lt;p&gt;Regards, Marc&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9566745</link><pubDate>Fri, 24 Apr 2009 17:03:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9566745</guid><dc:creator>arangas</dc:creator><description>&lt;p&gt;Roger, this might be an obvious one but what about SPWeb.Site to retrieve the current site collection for a web? It looks to me like this does not need to be disposed.&lt;/p&gt;
&lt;p&gt;Thanks Alex.&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9566751</link><pubDate>Fri, 24 Apr 2009 17:06:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9566751</guid><dc:creator>arangas</dc:creator><description>&lt;p&gt;Also, using the enumerator in SPListCollection causes a memory leak to be logged:&lt;/p&gt;
&lt;p&gt;This SPRequest was allocated at &amp;nbsp; &amp;nbsp;at Microsoft.SharePoint.Library.SPRequest..ctor() &amp;nbsp; &amp;nbsp; at Microsoft.SharePoint.SPGlobal.CreateSPRequestAndSetIdentity(Boolean bNotGlobalAdminCode, String strUrl, Boolean bNotAddToContext, Byte[] UserToken, String userName, Boolean bIgnoreTokenTimeout, Boolean bAsAnonymous) &amp;nbsp; &amp;nbsp; at Microsoft.SharePoint.SPWeb.InitializeSPRequest() &amp;nbsp; &amp;nbsp; at Microsoft.SharePoint.SPWeb.EnsureSPRequest() &amp;nbsp; &amp;nbsp; at Microsoft.SharePoint.SPWeb.get_Request() &amp;nbsp; &amp;nbsp; at Microsoft.SharePoint.SPListCollection.EnsureListsData(Guid webId, String strListName) &amp;nbsp; &amp;nbsp; at Microsoft.SharePoint.SPListCollection.EnsureListsData(String strListName) &amp;nbsp; &amp;nbsp; at Microsoft.SharePoint.SPListCollection.Undirty() &amp;nbsp; &amp;nbsp; at Microsoft.SharePoint.SPBaseCollection.System.Collections.IEnumerable.GetEnumerator()&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9648148</link><pubDate>Thu, 28 May 2009 20:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9648148</guid><dc:creator>jarofkla</dc:creator><description>&lt;p&gt;So what is the proper way to dispose in your Cross Method example? &amp;nbsp;I've tried to use a class destructor to manage the dispose of the web and site, but it doesn't seem to work.&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9876816</link><pubDate>Thu, 20 Aug 2009 13:52:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9876816</guid><dc:creator>ritmeijer@hotmail.com</dc:creator><description>&lt;p&gt;This is a great resource, as is the SPDisposeChecker tool. It appears you missed out SiteAdministrationSelector.CurrentItem though as well as disposing of streams that come of SPFile.&lt;/p&gt;
&lt;p&gt;For details see&lt;/p&gt;
&lt;p&gt; &lt;a rel="nofollow" target="_new" href="http://www.muhimbi.com/blog/2009/08/additional-little-known-sharepoint.html"&gt;http://www.muhimbi.com/blog/2009/08/additional-little-known-sharepoint.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt; &lt;a rel="nofollow" target="_new" href="http://www.muhimbi.com/blog/2009/07/solution-for-sharepoints-common.html"&gt;http://www.muhimbi.com/blog/2009/07/solution-for-sharepoints-common.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9922620</link><pubDate>Sun, 15 Nov 2009 12:23:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9922620</guid><dc:creator>mikeycooper</dc:creator><description>&lt;p&gt;The static methoc SPList.Exists seems to leak an SPSite. &amp;nbsp;It uses &amp;quot;new SPSite&amp;quot; but then does not dispose of it.&lt;/p&gt;
</description></item><item><title>re: SharePoint 2007 and WSS 3.0 Dispose Patterns by Example</title><link>http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#9922621</link><pubDate>Sun, 15 Nov 2009 12:24:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9922621</guid><dc:creator>mikeycooper</dc:creator><description>&lt;p&gt;Sorry, that should be &amp;quot;The static method SPSite.Exists seems to leak an SPSite.&amp;quot;&lt;/p&gt;
</description></item></channel></rss>