<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Fabrice&amp;#39;s weblog - All Comments</title><link>http://weblogs.asp.net/fmarguerie/default.aspx</link><description>Tools and Source</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Memory leaks with Infragistics NetAdvantage Windows Forms edition</title><link>http://weblogs.asp.net/fmarguerie/archive/2009/11/03/article-detect-avoid-memory-leaks.aspx#7261406</link><pubDate>Fri, 20 Nov 2009 11:17:25 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7261406</guid><dc:creator>Community Blogs</dc:creator><author>Community Blogs</author><description>&lt;p&gt;When I finalized my article about memory leaks , I removed a part about Infragistics NetAdvantage. Here&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7261406" width="1" height="1"&gt;</description></item><item><title>ADSystems &amp;#8211; Agile Development Blog &amp;raquo; Lidando com Vazamentos de Mem??ria no .NET</title><link>http://weblogs.asp.net/fmarguerie/archive/2009/08/07/cannot-create-window-handle-desktop-heap.aspx#7255463</link><pubDate>Sun, 15 Nov 2009 12:31:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7255463</guid><dc:creator>ADSystems – Agile Development Blog » Lidando com Vazamentos de Mem??ria no .NET</dc:creator><author>ADSystems – Agile Development Blog » Lidando com Vazamentos de Mem??ria no .NET</author><description>&lt;p&gt;Pingback from &amp;nbsp;ADSystems &amp;amp;#8211; Agile Development Blog &amp;amp;raquo; Lidando com Vazamentos de Mem??ria no .NET&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7255463" width="1" height="1"&gt;</description></item><item><title>Events, references, garbage collecting, memory leaks and weak delegates</title><link>http://weblogs.asp.net/fmarguerie/archive/2004/06/10/152535.aspx#7252928</link><pubDate>Fri, 13 Nov 2009 00:01:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7252928</guid><dc:creator>Fabrice's weblog</dc:creator><author>Fabrice's weblog</author><description>&lt;p&gt;I was playing with services and containers, as part of my implementation of Inversion of Control . All&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7252928" width="1" height="1"&gt;</description></item><item><title>re: Events, references, garbage collecting, memory leaks and weak delegates</title><link>http://weblogs.asp.net/fmarguerie/archive/2004/07/27/events-references-garbage-collecting-memory-leaks-and-weak-delegates.aspx#7252925</link><pubDate>Thu, 12 Nov 2009 23:55:52 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7252925</guid><dc:creator>Fabrice Marguerie</dc:creator><author>Fabrice Marguerie</author><description>&lt;p&gt;shake, I guess that you see that behavior with the SAVanNess sample. This was more than five years ago, and I don't remember why I included this example from Shawn A. Van Ness.&lt;/p&gt;
&lt;p&gt;All I know is that this code is not good at all! We don't want the connections to disappear when the GC performs a collection. Especially because the observers are still alive, as you mention.&lt;/p&gt;
&lt;p&gt;I'd say that only my example (Fabrice) is correct.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7252925" width="1" height="1"&gt;</description></item><item><title>re: Events, references, garbage collecting, memory leaks and weak delegates</title><link>http://weblogs.asp.net/fmarguerie/archive/2004/07/27/events-references-garbage-collecting-memory-leaks-and-weak-delegates.aspx#7252242</link><pubDate>Thu, 12 Nov 2009 08:43:32 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7252242</guid><dc:creator>shake</dc:creator><author>shake</author><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Interesting article. I see from your example that when the observers are disconnected and garbage collection is called, the observers cleanly get unsubscribed without much fuss.&lt;/p&gt;
&lt;p&gt;However I also have noticed that on calling GC.Collect() all the weak delegates' property wr.IsAlive becomes false even though the array list _Observers is not empty. What would be the point of that?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7252242" width="1" height="1"&gt;</description></item><item><title>re: Rethrowing exceptions and preserving the full call stack trace</title><link>http://weblogs.asp.net/fmarguerie/archive/2008/01/02/rethrowing-exceptions-and-preserving-the-full-call-stack-trace.aspx#7250843</link><pubDate>Tue, 10 Nov 2009 20:33:23 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7250843</guid><dc:creator>atconway</dc:creator><author>atconway</author><description>&lt;p&gt;There was an older comment from 'Jose' about having some issues in VB.NET. &amp;nbsp;I took the directly converted C# -&amp;gt; VB.NET code and tested it. &amp;nbsp;It worked as descibed with no issues. I had code with and without the call to the Sub, and my exception log would show the proper line number with stack trace or omit it as excpected. This is a well explained entry on this topic, thank you. &amp;nbsp;The VB.NET code I used is below:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Private Shared Sub PreserveStackTrace(ByVal exObj As Exception)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim preserveStackTrace As MethodInfo = GetType(Exception).GetMethod(&amp;quot;InternalPreserveStackTrace&amp;quot;, BindingFlags.Instance Or BindingFlags.NonPublic)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;preserveStackTrace.Invoke(exObj, Nothing)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7250843" width="1" height="1"&gt;</description></item><item><title>Ressources utiles pour la r??alisation de wireframes | Deldie</title><link>http://weblogs.asp.net/fmarguerie/archive/2009/02/15/ui-design-patterns-libraries.aspx#7249706</link><pubDate>Mon, 09 Nov 2009 12:20:29 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7249706</guid><dc:creator>Ressources utiles pour la r??alisation de wireframes | Deldie</dc:creator><author>Ressources utiles pour la r??alisation de wireframes | Deldie</author><description>&lt;p&gt;Pingback from &amp;nbsp;Ressources utiles pour la r??alisation de wireframes | Deldie&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7249706" width="1" height="1"&gt;</description></item><item><title>Memory leaks and profiling with .Net</title><link>http://weblogs.asp.net/fmarguerie/archive/2009/11/03/article-detect-avoid-memory-leaks.aspx#7247330</link><pubDate>Wed, 04 Nov 2009 22:43:53 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7247330</guid><dc:creator>Florian's weblog</dc:creator><author>Florian's weblog</author><description>&lt;p&gt;I wrote some moths ago an article about the GC and highlighted some particularities (unsafe and unmanaged&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7247330" width="1" height="1"&gt;</description></item><item><title>re: Forcing event unsubscription</title><link>http://weblogs.asp.net/fmarguerie/archive/2009/09/09/forcing-event-unsubscription.aspx#7247326</link><pubDate>Wed, 04 Nov 2009 22:34:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7247326</guid><dc:creator>Fabrice Marguerie</dc:creator><author>Fabrice Marguerie</author><description>&lt;p&gt;VB is hiding things so much, that I don't know if it's possible. I don't see how.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7247326" width="1" height="1"&gt;</description></item><item><title>re: New article: How to detect and avoid memory and resources leaks in .NET applications</title><link>http://weblogs.asp.net/fmarguerie/archive/2009/11/03/article-detect-avoid-memory-leaks.aspx#7247290</link><pubDate>Wed, 04 Nov 2009 21:50:23 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7247290</guid><dc:creator>Florian DITTGEN</dc:creator><author>Florian DITTGEN</author><description>&lt;p&gt;Best article I read about this subject. Thanks!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7247290" width="1" height="1"&gt;</description></item></channel></rss>