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 4:11 PM by AndersDissing

comments

anchorPoint wrote Nov 6, 2008 at 12:13 PM

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

wrote Nov 6, 2008 at 6:52 PM

wrote Nov 7, 2008 at 8:30 AM

wrote Dec 14, 2008 at 4:10 PM

wrote Dec 14, 2008 at 4:11 PM

wrote Feb 1, 2013 at 11:06 PM

wrote May 14, 2013 at 9:06 PM