<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.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>XNA Framework</title><link>http://forums.xna.com/forums/56.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: Leak within GraphicsDevice during content loads/unloads?</title><link>http://forums.xna.com/forums/thread/91822.aspx</link><pubDate>Mon, 22 Sep 2008 18:58:36 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:91822</guid><dc:creator>Bo Jordan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/91822.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=91822</wfw:commentRss><description>Thanks!  Just in case, I&amp;#39;ve opened &lt;a href="https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=369189&amp;amp;SiteID=226"&gt;an issue in Connect with my work-around&lt;/a&gt;.  Does it appear sound?</description></item><item><title>Re: Leak within GraphicsDevice during content loads/unloads?</title><link>http://forums.xna.com/forums/thread/91816.aspx</link><pubDate>Mon, 22 Sep 2008 18:46:46 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:91816</guid><dc:creator>Shawn Hargreaves</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/91816.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=91816</wfw:commentRss><description>I believe this issue is already fixed in 3.0 (although not in the beta).&lt;br /&gt;</description></item><item><title>Leak within GraphicsDevice during content loads/unloads?</title><link>http://forums.xna.com/forums/thread/91815.aspx</link><pubDate>Mon, 22 Sep 2008 18:34:25 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:91815</guid><dc:creator>Bo Jordan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/91815.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=56&amp;PostID=91815</wfw:commentRss><description>My current project is required to load and unload significant amounts of content, and I am seeing a significant performance issue once enough loads and unloads have occurred.  Specifically, inside GraphicsDevice there is an internal Microsoft.Xna.Framework.Graphics.DeviceResourceManager class, which contains a dictionary of ResourceData structs with weak references to the content.  Every time there is a content load, a reference to each asset is added to this collection.  However, this dictionary doesn&amp;#39;t appear to ever be flushed, even when the referenced content has been disposed.  In my tests my app performance is killed within a few hours as this collection grows aggressively.&lt;br /&gt;
&lt;br /&gt;
Is there a proper way to flush this collection?  Resetting the GraphicsDevice doesn&amp;#39;t appear to be enough.  I&amp;#39;m currently reflecting into the collection to clean things up, and it appears to be stable in initial testing.  Is there a better method?&lt;br /&gt;
&lt;br /&gt;
From what I can tell XNA 3.0 beta will have the same issue.  I will open a bug in Connect with my work-around code and post a link.&lt;br /&gt;
&lt;br /&gt;
Thanks for any help!&lt;br /&gt;
&lt;br /&gt;
Bo Jordan</description></item></channel></rss>