<?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: Kick starting the garbage collector in Actionscript 3 with AIR</title>
	<atom:link href="http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/</link>
	<description>Hacking away at UI development</description>
	<lastBuildDate>Thu, 09 Sep 2010 19:23:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nate Chatellier</title>
		<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/comment-page-1/#comment-22222</link>
		<dc:creator>Nate Chatellier</dc:creator>
		<pubDate>Mon, 14 Jun 2010 23:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/#comment-22222</guid>
		<description>Now that AIR 2.0 is out, I&#039;m curious if Adobe has addressed any of these concerns. I know they&#039;ve focused much on CPU usage, but I haven&#039;t heard nearly as much talk about memory usage...</description>
		<content:encoded><![CDATA[<p>Now that AIR 2.0 is out, I&#8217;m curious if Adobe has addressed any of these concerns. I know they&#8217;ve focused much on CPU usage, but I haven&#8217;t heard nearly as much talk about memory usage&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PS</title>
		<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/comment-page-1/#comment-22152</link>
		<dc:creator>PS</dc:creator>
		<pubDate>Tue, 25 May 2010 07:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/#comment-22152</guid>
		<description>Really nice post. Cleared most of my doubts.</description>
		<content:encoded><![CDATA[<p>Really nice post. Cleared most of my doubts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DB</title>
		<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/comment-page-1/#comment-22133</link>
		<dc:creator>DB</dc:creator>
		<pubDate>Tue, 18 May 2010 21:07:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/#comment-22133</guid>
		<description>I&#039;ve got a web app that quickly grows to the following size:

Profiler says:
Peak: 57m
Current: 49m

After gc, generally settles back down as it should.

System.totalMemory: 337m

Task Manager shows browser at: 840m

Not sure what I&#039;m going to do.  I&#039;m quite sure (well, 99% sure) I don&#039;t have any leaks as I watch the memory go up and down in the profiler as it should, but the browser just keeps going up and up and never comes down.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got a web app that quickly grows to the following size:</p>
<p>Profiler says:<br />
Peak: 57m<br />
Current: 49m</p>
<p>After gc, generally settles back down as it should.</p>
<p>System.totalMemory: 337m</p>
<p>Task Manager shows browser at: 840m</p>
<p>Not sure what I&#8217;m going to do.  I&#8217;m quite sure (well, 99% sure) I don&#8217;t have any leaks as I watch the memory go up and down in the profiler as it should, but the browser just keeps going up and up and never comes down.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Mason</title>
		<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/comment-page-1/#comment-19041</link>
		<dc:creator>Tom Mason</dc:creator>
		<pubDate>Thu, 21 Jan 2010 14:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/#comment-19041</guid>
		<description>Based on my own experience with AS3 memory management, I also have started pooling my display objects to keep memory usage small and efficient.  However, I&#039;ve recently run into a bug in AIR with pooling MovieClips.

If you have a MovieClip with multiple frames representing different states for a model object, and you grab an instance from the pool, set its frame, show it, then put it back in the pool, and repeat, you&#039;ll see that the visual state of the MovieClip does not actually change when gotoAndStop is called.  The currentFrame property changes, but the MovieClip gets &quot;stuck&quot; in the same visual state the whole time.

I created a simple test project that exhibits the problem here:

http://www.gabob.com/AirBug.zip

After unzipping, set your workspace in Flex Builder to the flex folder.  Then you can run the flash and air versions.  The flash version works fine, but the air version only shows green squares, even though the frame is switched to blue sometimes.</description>
		<content:encoded><![CDATA[<p>Based on my own experience with AS3 memory management, I also have started pooling my display objects to keep memory usage small and efficient.  However, I&#8217;ve recently run into a bug in AIR with pooling MovieClips.</p>
<p>If you have a MovieClip with multiple frames representing different states for a model object, and you grab an instance from the pool, set its frame, show it, then put it back in the pool, and repeat, you&#8217;ll see that the visual state of the MovieClip does not actually change when gotoAndStop is called.  The currentFrame property changes, but the MovieClip gets &#8220;stuck&#8221; in the same visual state the whole time.</p>
<p>I created a simple test project that exhibits the problem here:</p>
<p><a href="http://www.gabob.com/AirBug.zip" rel="nofollow">http://www.gabob.com/AirBug.zip</a></p>
<p>After unzipping, set your workspace in Flex Builder to the flex folder.  Then you can run the flash and air versions.  The flash version works fine, but the air version only shows green squares, even though the frame is switched to blue sometimes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: So you have memory problems in your Flex application? &#171; Flex 4 Examples</title>
		<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/comment-page-1/#comment-15763</link>
		<dc:creator>So you have memory problems in your Flex application? &#171; Flex 4 Examples</dc:creator>
		<pubDate>Thu, 03 Sep 2009 16:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/#comment-15763</guid>
		<description>[...] Sean Christmann: http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Sean Christmann: <a href="http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/" rel="nofollow">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Noble</title>
		<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/comment-page-1/#comment-15755</link>
		<dc:creator>Josh Noble</dc:creator>
		<pubDate>Thu, 03 Sep 2009 14:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/#comment-15755</guid>
		<description>This was super useful in a recent project I was working on, many thanks for putting this together.</description>
		<content:encoded><![CDATA[<p>This was super useful in a recent project I was working on, many thanks for putting this together.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: theRemix</title>
		<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/comment-page-1/#comment-15707</link>
		<dc:creator>theRemix</dc:creator>
		<pubDate>Tue, 01 Sep 2009 20:26:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/#comment-15707</guid>
		<description>interesting...
i recently found an awesome library that helps with these issues, CASAlib http://casalib.org/ i don&#039;t know if you have ever heard of it, it works wonders!
you just make your CasaSprites and destroy() or removeAndDestroyChildren() recursively and just let the GC do it&#039;s job automagically, you don&#039;t need to force System.gc() unless you want to for debugging and proof.
hth.</description>
		<content:encoded><![CDATA[<p>interesting&#8230;<br />
i recently found an awesome library that helps with these issues, CASAlib <a href="http://casalib.org/" rel="nofollow">http://casalib.org/</a> i don&#8217;t know if you have ever heard of it, it works wonders!<br />
you just make your CasaSprites and destroy() or removeAndDestroyChildren() recursively and just let the GC do it&#8217;s job automagically, you don&#8217;t need to force System.gc() unless you want to for debugging and proof.<br />
hth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharad Joshi</title>
		<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/comment-page-1/#comment-13946</link>
		<dc:creator>Sharad Joshi</dc:creator>
		<pubDate>Wed, 01 Jul 2009 06:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/#comment-13946</guid>
		<description>Great article. Explains a lot of things that I have been facing. Thank you for sharing.

Can you please throw some light on how &quot;Adobe took care of the first problem.. &quot;. Is it available in FP10 or as a patch to FP9?</description>
		<content:encoded><![CDATA[<p>Great article. Explains a lot of things that I have been facing. Thank you for sharing.</p>
<p>Can you please throw some light on how &#8220;Adobe took care of the first problem.. &#8220;. Is it available in FP10 or as a patch to FP9?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thoughts &#38; Code</title>
		<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/comment-page-1/#comment-13596</link>
		<dc:creator>Thoughts &#38; Code</dc:creator>
		<pubDate>Wed, 24 Jun 2009 13:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/#comment-13596</guid>
		<description>[...] http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/" rel="nofollow">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hadi</title>
		<link>http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/comment-page-1/#comment-11964</link>
		<dc:creator>Hadi</dc:creator>
		<pubDate>Sat, 16 May 2009 16:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/#comment-11964</guid>
		<description>nicely said, I really needed this, you save me :) Thanks a lot.</description>
		<content:encoded><![CDATA[<p>nicely said, I really needed this, you save me <img src='http://www.craftymind.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks a lot.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
