1

Closed

Memory leak in page adapter

description

There are a memory leak in the page adapter
HtmlTextWriter writer = new HtmlTextWriter(new StringWriter(sb));
 
The solution
using(StringWriter sb = new StringWriter(sb))
{
using(HtmlTextWriter writer = new HtmlTextWriter(sb))
{}
}
Closed Dec 14, 2008 at 3:11 PM by AndersDissing

comments

anchorPoint wrote Nov 6, 2008 at 11:13 AM

All adaptors should be checked for this leak. The web part adaptor is also confirmed to have this leak.

wrote Nov 6, 2008 at 5:52 PM

wrote Nov 7, 2008 at 7:30 AM

wrote Dec 14, 2008 at 3:10 PM

wrote Dec 14, 2008 at 3:11 PM

wrote Feb 1, 2013 at 10:06 PM

wrote May 14, 2013 at 8:06 PM