<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Importance Of Releasing Your Components Through Windsor</title>
	<atom:link href="http://elegantcode.com/2008/12/13/the-importance-of-releasing-your-components-through-windsor/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2008/12/13/the-importance-of-releasing-your-components-through-windsor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-importance-of-releasing-your-components-through-windsor</link>
	<description></description>
	<lastBuildDate>Sun, 12 Feb 2012 18:54:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Elegant Code &#187; The Component Burden</title>
		<link>http://elegantcode.com/2008/12/13/the-importance-of-releasing-your-components-through-windsor/comment-page-1/#comment-39660</link>
		<dc:creator>Elegant Code &#187; The Component Burden</dc:creator>
		<pubDate>Sun, 14 Dec 2008 12:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/?p=1686#comment-39660</guid>
		<description>[...] prompted the following comment by Bryan Watts:  So Controller is responsible for disposing of something it did not explicitly [...]</description>
		<content:encoded><![CDATA[<p>[...] prompted the following comment by Bryan Watts:  So Controller is responsible for disposing of something it did not explicitly [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Inquisitive Coder - Davy Brion&#8217;s Blog &#187; Blog Archive &#187; The Component Burden</title>
		<link>http://elegantcode.com/2008/12/13/the-importance-of-releasing-your-components-through-windsor/comment-page-1/#comment-39659</link>
		<dc:creator>The Inquisitive Coder - Davy Brion&#8217;s Blog &#187; Blog Archive &#187; The Component Burden</dc:creator>
		<pubDate>Sun, 14 Dec 2008 12:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/?p=1686#comment-39659</guid>
		<description>[...] prompted the following comment by Bryan Watts:  So Controller is responsible for disposing of something it did not explicitly [...]</description>
		<content:encoded><![CDATA[<p>[...] prompted the following comment by Bryan Watts:  So Controller is responsible for disposing of something it did not explicitly [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan Watts</title>
		<link>http://elegantcode.com/2008/12/13/the-importance-of-releasing-your-components-through-windsor/comment-page-1/#comment-39632</link>
		<dc:creator>Bryan Watts</dc:creator>
		<pubDate>Sat, 13 Dec 2008 23:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/?p=1686#comment-39632</guid>
		<description>So Controller is responsible for disposing of something it did not explicitly create? That&#039;s a little presumptuous isn&#039;t it?

&gt; if you own a reference to an IDisposable instance, you are responsible for properly disposing of that instance.

I agree (and I&#039;ve read your other article). However, in this case, Controller clearly does not own its dependency.</description>
		<content:encoded><![CDATA[<p>So Controller is responsible for disposing of something it did not explicitly create? That&#8217;s a little presumptuous isn&#8217;t it?</p>
<p>&gt; if you own a reference to an IDisposable instance, you are responsible for properly disposing of that instance.</p>
<p>I agree (and I&#8217;ve read your other article). However, in this case, Controller clearly does not own its dependency.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davy Brion</title>
		<link>http://elegantcode.com/2008/12/13/the-importance-of-releasing-your-components-through-windsor/comment-page-1/#comment-39613</link>
		<dc:creator>Davy Brion</dc:creator>
		<pubDate>Sat, 13 Dec 2008 19:50:08 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/?p=1686#comment-39613</guid>
		<description>Sergio:  well the tests were just an example to highlight the problem and the solution.  In the real application code, i ask the container for an instance of the correct controller in the constructor of my base asp.net page.  Then when the Dispose method of that base page is called, i release it again.

As for my service layer, i request an instance of the correct RequestHandler, i delegate to that handler and right after that i call release it.

and that did fix the memory leak</description>
		<content:encoded><![CDATA[<p>Sergio:  well the tests were just an example to highlight the problem and the solution.  In the real application code, i ask the container for an instance of the correct controller in the constructor of my base asp.net page.  Then when the Dispose method of that base page is called, i release it again.</p>
<p>As for my service layer, i request an instance of the correct RequestHandler, i delegate to that handler and right after that i call release it.</p>
<p>and that did fix the memory leak</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio Pereira</title>
		<link>http://elegantcode.com/2008/12/13/the-importance-of-releasing-your-components-through-windsor/comment-page-1/#comment-39601</link>
		<dc:creator>Sergio Pereira</dc:creator>
		<pubDate>Sat, 13 Dec 2008 16:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/?p=1686#comment-39601</guid>
		<description>So where did you finally put that container.Release(controller) statement? Having that in your tests in nice but it certainly did not fix your memory leak, right? I&#039;m just concerned with who needs to know about the container and the controller at the same time.</description>
		<content:encoded><![CDATA[<p>So where did you finally put that container.Release(controller) statement? Having that in your tests in nice but it certainly did not fix your memory leak, right? I&#8217;m just concerned with who needs to know about the container and the controller at the same time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Courtrille</title>
		<link>http://elegantcode.com/2008/12/13/the-importance-of-releasing-your-components-through-windsor/comment-page-1/#comment-39592</link>
		<dc:creator>Shane Courtrille</dc:creator>
		<pubDate>Sat, 13 Dec 2008 15:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/?p=1686#comment-39592</guid>
		<description>This seems like something that shouldn&#039;t be your responsibility.  It would be nice if there was a LifeCycle that told Windsor to use a WeakReference for keeping track of things so they could be collected properly.</description>
		<content:encoded><![CDATA[<p>This seems like something that shouldn&#8217;t be your responsibility.  It would be nice if there was a LifeCycle that told Windsor to use a WeakReference for keeping track of things so they could be collected properly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

