<?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>GDI+ (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx</link><description>So we occasionally see customers that are either using System.Drawing themselves in their ASP.NET application or are using controls (like charting controls) that use it. Under most circumstances, this works just fine.&amp;#160; But there are times where it</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>GDI  (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx#8325876</link><pubDate>Wed, 19 Mar 2008 19:33:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8325876</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
</description></item><item><title>re: GDI+ (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx#8326104</link><pubDate>Wed, 19 Mar 2008 21:59:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8326104</guid><dc:creator>Niki</dc:creator><description>&lt;p&gt;So, what was the problem? I mean, some code must have allocated all that memory and never properly freed it. Is there a memory leak in GDI+? In GDI? In System.Drawing? Will it be fixed?? Or did the customer forget to call Dispose on some GDI+ objects?&lt;/p&gt;</description></item><item><title>re: GDI+ (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx#8326139</link><pubDate>Wed, 19 Mar 2008 22:27:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8326139</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;Yes, so in this case, something did allocated the memory. &amp;nbsp;The problem is that sometimes you don't know when to clean these objects up and they end up staying around for a long time. &amp;nbsp;In this case, something was holding onto the objects and keeping it from getting cleaned up.&lt;/p&gt;
&lt;p&gt;It also could easily have been that they didn't clean up all the memory they allocated.&lt;/p&gt;
</description></item><item><title>re: GDI+ (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx#8326169</link><pubDate>Wed, 19 Mar 2008 22:43:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8326169</guid><dc:creator>Francois</dc:creator><description>&lt;p&gt;That has always bothered me a bit... sure, System.Drawing isn't supported in certain senarios, and the documentation is incredibly clear on it...&lt;/p&gt;
&lt;p&gt;however, what exactly is the alternative? Making my own image manipulation stack?&lt;/p&gt;</description></item><item><title>re: GDI+ (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx#8326176</link><pubDate>Wed, 19 Mar 2008 22:50:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8326176</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;For the scenarios where this is affected, there isn't really a good answer. &amp;nbsp;System.Drawing assumes that it has an interactive user so it will try to show dialog boxes and things under some circumstances.&lt;/p&gt;
&lt;p&gt;The best way is to test a lot and see what could go wrong and then handle those situation before it goes to System.Drawing so you don't have the problem. &amp;nbsp; In this case, just making sure all objects get cleaned up will cut down the memory.&lt;/p&gt;
</description></item><item><title>re: GDI+ (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx#8326288</link><pubDate>Thu, 20 Mar 2008 00:20:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8326288</guid><dc:creator>Roger Martin</dc:creator><description>&lt;P&gt;This has been driving me nuts as well. I run an open source gallery web app and sometimes the memory will continue increasing until it crashes. I've studied it to death to make sure I'm not missing any dispose calls.&lt;/P&gt;
&lt;P&gt;Is it possible to improve things by forcing a garbage collection? I'm thinking the memory is locked so it won't get freed even during a forced collection. Grrr.&lt;/P&gt;</description></item><item><title>re: GDI+ (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx#8326870</link><pubDate>Thu, 20 Mar 2008 06:42:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8326870</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;I wouldn't suggest forcing a garbage collection. &amp;nbsp;that won't really get you what you want. &amp;nbsp;So there are a few things that you can do. &amp;nbsp;Depending, you may want to create a case with Microsoft Support and have us help you track it down.&lt;/p&gt;
&lt;p&gt;To create a case, check out:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/tom/archive/2007/11/15/contacting-tom.aspx"&gt;http://blogs.msdn.com/tom/archive/2007/11/15/contacting-tom.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are a few things to look for. &amp;nbsp;The easiest thing would be to make sure you aren't adding the objects to the cache or anything that would keep them rooted. &amp;nbsp;You can use some of the High Memory posts here to try to track down the problem:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/tom/archive/tags/High+Memory/default.aspx"&gt;http://blogs.msdn.com/tom/archive/tags/High+Memory/default.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: GDI+ (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx#8327045</link><pubDate>Thu, 20 Mar 2008 10:07:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8327045</guid><dc:creator>Josh Coswell</dc:creator><description>&lt;p&gt;I think I have seen this type of behaviour of GDI in the past.&lt;/p&gt;
&lt;p&gt;With this new insight I will have better chance to catch such problems.&lt;/p&gt;
&lt;p&gt;Josh&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://riverasp.net"&gt;http://riverasp.net&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: GDI+ (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx#8327415</link><pubDate>Thu, 20 Mar 2008 17:12:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8327415</guid><dc:creator>Ostwald</dc:creator><description>&lt;p&gt;Hey tom, I have a lil query in GDI . I want to extract the co-ordinates of the text from the image . I've already applied sobels algorithm and some morphing techniques. But i'm not gettint the exact coordinates so that i can draw a rectangle on that text. How can &amp;nbsp;i do this?&lt;/p&gt;</description></item><item><title>re: GDI+ (GdiPlus) and ASP.NET</title><link>http://blogs.msdn.com/tom/archive/2008/03/19/gdi-gdiplus-and-asp-net.aspx#8327439</link><pubDate>Thu, 20 Mar 2008 17:39:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8327439</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;I am not an expert in GDI. &amp;nbsp;I would suggest that you try asking this question on the forum or newsgroup for GDI. &amp;nbsp;Like:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.platformsdk.gdi&amp;amp;mid=27d0cbcb-9d41-4fbc-91ad-dec2fb7e7179"&gt;http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.platformsdk.gdi&amp;amp;mid=27d0cbcb-9d41-4fbc-91ad-dec2fb7e7179&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or you can create a support case with Microsoft if you need the answer faster. &amp;nbsp;See my comment above for how to create one.&lt;/p&gt;
</description></item></channel></rss>