<?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>Q&amp;amp;A Reader emails about .NET memory leaks and random questions</title><link>http://blogs.msdn.com/tess/archive/2008/09/16/q-a-reader-emails-about-net-memory-leaks-and-random-questions.aspx</link><description>Here are of some of the reader emails I got this week and my answers to them... How do I troubleshoot this memory leak Debugging techniques for capturing stacks of OOMS Do you have a list of Debugging 101 links? Debugging managed code in IE Getting to</description><dc:language>sv-SE</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Q&amp;A Reader emails about .NET memory leaks and random questions</title><link>http://blogs.msdn.com/tess/archive/2008/09/16/q-a-reader-emails-about-net-memory-leaks-and-random-questions.aspx#8954283</link><pubDate>Tue, 16 Sep 2008 22:23:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8954283</guid><dc:creator>Keith Kaminski</dc:creator><description>&lt;p&gt;Thanks for answering my question, Tess. I submitted the question about debugging managed code in IE. After digging through about two different memory dumps from the machine, I found that only 3-4 of them had any threads with managed code... and those threads looked like they were in the middle of performing a &amp;quot;SafeNativeMethod&amp;quot; call like this:&lt;/p&gt;
&lt;p&gt;0x07b7afe0 &amp;nbsp;0x7c8285ec [FRAME: NDirectMethodFrameStandalone] [DEFAULT] Boolean System.Windows.Forms.SafeNativeMethods.SetWindowPos(ValueClass System.Runtime.InteropServices.HandleRef,ValueClass System.Runtime.InteropServices.HandleRef,I4,I4,I4,I4,I4)&lt;/p&gt;
&lt;p&gt;I'm at a total loss to figure out what the problem is, so I've gone ahead and opened up a ticket with Microsoft about it.&lt;/p&gt;
&lt;p&gt;I very much appreciate that you responded to my question on your blog!&lt;/p&gt;
&lt;p&gt;- Keith&lt;/p&gt;
</description></item><item><title>re: Q&amp;A Reader emails about .NET memory leaks and random questions</title><link>http://blogs.msdn.com/tess/archive/2008/09/16/q-a-reader-emails-about-net-memory-leaks-and-random-questions.aspx#8954302</link><pubDate>Tue, 16 Sep 2008 22:42:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8954302</guid><dc:creator>Keith Kaminski</dc:creator><description>&lt;p&gt;Also, to answer your question...&lt;/p&gt;
&lt;p&gt;I've monitored the network traffic with Fiddler and used SQL Profiler to make sure my control wasn't doing some kind of processing when IE hung. The freeze always happens before or after every network\SQL call has completed... it never freezes up in the middle of processing.&lt;/p&gt;
&lt;p&gt;My thought right now is that the freeze is related to rendering. I feel like something is in a deadlock, but I just can't figure out what it could be. Syncblk doesn't show locks in any of my 22 memory dumps, and the !threads command shows a lock count of 0 for everything.&lt;/p&gt;
&lt;p&gt;I'll admit to being somewhat new to debugging via memory dumps, so hopefully the folks at Microsoft can help me figure this one out!&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;- Keith&lt;/p&gt;
</description></item><item><title>re: Q&amp;A Reader emails about .NET memory leaks and random questions</title><link>http://blogs.msdn.com/tess/archive/2008/09/16/q-a-reader-emails-about-net-memory-leaks-and-random-questions.aspx#8955424</link><pubDate>Wed, 17 Sep 2008 15:54:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8955424</guid><dc:creator>Daniel Puzey</dc:creator><description>&lt;p&gt;Regarding dependency properties....&lt;/p&gt;
&lt;p&gt;The dependency property itself is a static property of the class, and any instance property is a wrapper that calls the dependency property, making this trickier than it looks.&lt;/p&gt;
&lt;p&gt;However, you can only use a DependencyProperty on a class that derives from DependencyObject. &amp;nbsp;From Reflector, you can see that there's the following definition in the DependencyObject class:&lt;/p&gt;
&lt;p&gt;private IDictionary&amp;lt;DependencyProperty, object&amp;gt; dependencyPropertyValues;&lt;/p&gt;
&lt;p&gt;... so I'd guess that's where the values are stored. &amp;nbsp;Remember though that these might not be the actual values - they might be a binding object that calculates the value. &amp;nbsp;Sadly I haven't had time to look any deeper yet...&lt;/p&gt;
</description></item><item><title>re: Q&amp;A Reader emails about .NET memory leaks and random questions</title><link>http://blogs.msdn.com/tess/archive/2008/09/16/q-a-reader-emails-about-net-memory-leaks-and-random-questions.aspx#8955616</link><pubDate>Wed, 17 Sep 2008 17:54:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8955616</guid><dc:creator>James</dc:creator><description>&lt;p&gt;Thanks for responding to my e-mail (about the memory leak). &amp;nbsp;I'm still working on it and will comment here when I figure it out.&lt;/p&gt;
&lt;p&gt;On another note, in reference to the &amp;quot;Fragmentation of the LOH&amp;quot; e-mail, I had read an article regarding the 1.0 framework that said the LOH is allocated but never really freed-up. &amp;nbsp;The objects might be removed and the space can be used again for the application, but the memory is not freed-up for the OS. &lt;/p&gt;
&lt;p&gt;Do you know if that has changed? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does memory allocated for the LOH ever get released back to the OS?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;James&lt;/p&gt;
</description></item><item><title>re: Q&amp;A Reader emails about .NET memory leaks and random questions</title><link>http://blogs.msdn.com/tess/archive/2008/09/16/q-a-reader-emails-about-net-memory-leaks-and-random-questions.aspx#8955624</link><pubDate>Wed, 17 Sep 2008 17:58:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8955624</guid><dc:creator>Tess</dc:creator><description>&lt;p&gt;yes, when the segment no longer has any objects... this was changed in 2.0 i believe&lt;/p&gt;
</description></item><item><title>re: Q&amp;A Reader emails about .NET memory leaks and random questions</title><link>http://blogs.msdn.com/tess/archive/2008/09/16/q-a-reader-emails-about-net-memory-leaks-and-random-questions.aspx#8957261</link><pubDate>Thu, 18 Sep 2008 16:18:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8957261</guid><dc:creator>joydip roy chowdhury</dc:creator><description>&lt;p&gt;Though the explanation is rather tricky,it is good.&lt;/p&gt;
&lt;p&gt;I would request you to kindly explain it with the help of &amp;nbsp;examples .So that it is easier to understand this subject. &lt;/p&gt;
</description></item><item><title>re: Q&amp;A Reader emails about .NET memory leaks and random questions</title><link>http://blogs.msdn.com/tess/archive/2008/09/16/q-a-reader-emails-about-net-memory-leaks-and-random-questions.aspx#8957262</link><pubDate>Thu, 18 Sep 2008 16:18:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8957262</guid><dc:creator>joydip roy chowdhury</dc:creator><description>&lt;p&gt;Though the explanation is rather tricky,it is good.&lt;/p&gt;
&lt;p&gt;I would request you to kindly explain it with the help of &amp;nbsp;examples .So that it is easier to understand this subject. &lt;/p&gt;
</description></item><item><title>Interesting Finds: 2008.09.15~2008.09.21</title><link>http://blogs.msdn.com/tess/archive/2008/09/16/q-a-reader-emails-about-net-memory-leaks-and-random-questions.aspx#8960727</link><pubDate>Mon, 22 Sep 2008 01:47:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8960727</guid><dc:creator>gOODiDEA.NET</dc:creator><description>&lt;p&gt;Other Don't Tell Me &amp;amp;quot;How&amp;amp;quot;, Tell me &amp;amp;quot;What&amp;amp;quot; Microsoft Network Monitor 3.2 .NET MSDN&lt;/p&gt;
</description></item><item><title>re: Q&amp;A Reader emails about .NET memory leaks and random questions</title><link>http://blogs.msdn.com/tess/archive/2008/09/16/q-a-reader-emails-about-net-memory-leaks-and-random-questions.aspx#8972450</link><pubDate>Thu, 02 Oct 2008 02:57:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8972450</guid><dc:creator>Nick Parker</dc:creator><description>&lt;p&gt;I have a question about % time in GC and the 3 generations. &amp;nbsp;I have an app that has a very low % of time in the GC, but the ratio between the generations doesnt seem to be ideal. &amp;nbsp;The average % of time in the GC is 2.27%, but the ratio between gen0 and gen1 is .65, and the ratio between gen1 and gen2 is .19. &amp;nbsp;Should i be looking further, or since the % is so low, just ignore the ratio?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;
</description></item></channel></rss>