<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Async Navigation and PendingEntityListResolved</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Async Navigation and PendingEntityListResolved</description>
  <pubDate>Tue, 12 May 2026 21:29:57 -700</pubDate>
  <lastBuildDate>Fri, 03 May 2013 11:25:05 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=4134</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Async Navigation and PendingEntityListResolved : Hi LowOrbit,  After using .NET...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4134&amp;PID=16289#16289</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 4134<br /><strong>Posted:</strong> 03-May-2013 at 11:25am<br /><br />Hi LowOrbit,<br /><br />After using .NET Memory Profiler, we were not able to see any memory leak due to creating event handlers as you described.<br />Based on that, I'd say it's safe to have anonymous event handlers on PendingEntityListResolved.]]>
   </description>
   <pubDate>Fri, 03 May 2013 11:25:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4134&amp;PID=16289#16289</guid>
  </item> 
  <item>
   <title>Async Navigation and PendingEntityListResolved : Hello  I was looking at the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4134&amp;PID=16285#16285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=118" rel="nofollow">LowOrbit</a><br /><strong>Subject:</strong> 4134<br /><strong>Posted:</strong> 02-May-2013 at 12:43pm<br /><br />Hello<DIV>&nbsp;</DIV><DIV>I was looking at the documentation about fetching a Navigation Property asyncronyously. Below is an example of a code snippet to fetch a nav property:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: darkblue">RelatedEntityList</SPAN>&lt;<SPAN style="COLOR: darkblue">AnalysisDefinitionMethod</SPAN>&gt;&nbsp;availableMethods&nbsp;=&nbsp;<SPAN style="COLOR: purple">aResult</SPAN>.<SPAN style="COLOR: purple">AnalysisDefinitionMethods</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;availableMethods.<SPAN style="COLOR: magenta">PendingEntityListResolved</SPAN>&nbsp;<SPAN style="COLOR: darkcyan; FONT-WEIGHT: bold">+=</SPAN>&nbsp;(sender,&nbsp;args)&nbsp;=&gt;&nbsp;args.<SPAN style="COLOR: purple">ResolvedEntities</SPAN>.<SPAN style="COLOR: darkcyan; FONT-WEIGHT: bold">ForEach</SPAN>(e&nbsp;=&gt;&nbsp;<SPAN style="COLOR: purple"><EM>code to load the results</EM></SPAN>);<BR></DIV><DIV>My concern here is that creating an anonymous event handler of PendingEntityListResolved will cause a memory leak because the variable availableMethods will never get garbage collected. Is this true or will the event handler be released properly when availableMethods goes out of scope?</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 02 May 2013 12:43:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4134&amp;PID=16285#16285</guid>
  </item> 
 </channel>
</rss>