<?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: Memory leak caused by setTimeout</title>
	<atom:link href="http://michaelvandaniker.com/blog/2008/09/05/memory-leak-caused-by-settimeout/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaelvandaniker.com/blog/2008/09/05/memory-leak-caused-by-settimeout/</link>
	<description>Data Visualization Architect</description>
	<lastBuildDate>Fri, 20 Jan 2012 21:46:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: unsure</title>
		<link>http://michaelvandaniker.com/blog/2008/09/05/memory-leak-caused-by-settimeout/comment-page-1/#comment-10213</link>
		<dc:creator>unsure</dc:creator>
		<pubDate>Tue, 21 Dec 2010 01:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://michaelvandaniker.com/blog/?p=47#comment-10213</guid>
		<description>&quot;Calling clearTimeout does allow the commands to become eligible for garbage collection. It’s odd that this call is necessary to clear the references that are keeping it alive. Once a timeout ends, I would expect the player to do whatever clearTimeout is doing behind the scenes since that timeout won’t be used again. Thank you for your suggestion.&quot;
Where I have been able to read about this?</description>
		<content:encoded><![CDATA[<p>&#8220;Calling clearTimeout does allow the commands to become eligible for garbage collection. It’s odd that this call is necessary to clear the references that are keeping it alive. Once a timeout ends, I would expect the player to do whatever clearTimeout is doing behind the scenes since that timeout won’t be used again. Thank you for your suggestion.&#8221;<br />
Where I have been able to read about this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://michaelvandaniker.com/blog/2008/09/05/memory-leak-caused-by-settimeout/comment-page-1/#comment-16</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 25 Sep 2008 13:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://michaelvandaniker.com/blog/?p=47#comment-16</guid>
		<description>In this case one timer would definitely be enough.  In the end I simplified things further by only having one instance of my command.  When the timer ticks out I call execute again rather than re-dispatching the event.  I just found is problematic that something that looked like it should have been garbage collected wasn&#039;t.</description>
		<content:encoded><![CDATA[<p>In this case one timer would definitely be enough.  In the end I simplified things further by only having one instance of my command.  When the timer ticks out I call execute again rather than re-dispatching the event.  I just found is problematic that something that looked like it should have been garbage collected wasn&#8217;t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lwz7512</title>
		<link>http://michaelvandaniker.com/blog/2008/09/05/memory-leak-caused-by-settimeout/comment-page-1/#comment-14</link>
		<dc:creator>lwz7512</dc:creator>
		<pubDate>Wed, 17 Sep 2008 02:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://michaelvandaniker.com/blog/?p=47#comment-14</guid>
		<description>I think the local timer variable is the source of memory leak.

var pollTimer:Timer

you should turn it to a global variable, and the whole app has only one timer, one is enough!</description>
		<content:encoded><![CDATA[<p>I think the local timer variable is the source of memory leak.</p>
<p>var pollTimer:Timer</p>
<p>you should turn it to a global variable, and the whole app has only one timer, one is enough!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://michaelvandaniker.com/blog/2008/09/05/memory-leak-caused-by-settimeout/comment-page-1/#comment-12</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 05 Sep 2008 14:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://michaelvandaniker.com/blog/?p=47#comment-12</guid>
		<description>You&#039;re right, Richard.  Calling clearTimeout does allow the commands to become eligible for garbage collection.  It&#039;s odd that this call is necessary to clear the references that are keeping it alive.  Once a timeout ends, I would expect the player to do whatever clearTimeout is doing behind the scenes since that timeout won&#039;t be used again.  Thank you for your suggestion.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, Richard.  Calling clearTimeout does allow the commands to become eligible for garbage collection.  It&#8217;s odd that this call is necessary to clear the references that are keeping it alive.  Once a timeout ends, I would expect the player to do whatever clearTimeout is doing behind the scenes since that timeout won&#8217;t be used again.  Thank you for your suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Butler</title>
		<link>http://michaelvandaniker.com/blog/2008/09/05/memory-leak-caused-by-settimeout/comment-page-1/#comment-11</link>
		<dc:creator>Richard Butler</dc:creator>
		<pubDate>Fri, 05 Sep 2008 07:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://michaelvandaniker.com/blog/?p=47#comment-11</guid>
		<description>Have you tried saving the timeout ID and then force clearing it using clearTimeout() in the poll() method? Does it still keep the instances in memory?</description>
		<content:encoded><![CDATA[<p>Have you tried saving the timeout ID and then force clearing it using clearTimeout() in the poll() method? Does it still keep the instances in memory?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

