Garbage collection of Strings returned from C# method calls in ascx pages
Posted
by Icarus
on Stack Overflow
See other posts from Stack Overflow
or by Icarus
Published on 2010-03-18T12:25:00Z
Indexed on
2010/03/18
13:31 UTC
Read the original article
Hit count: 346
Hi,
For a web application developed on ASP.NET, we are finding that for user control files (ascx) we are returning long strings as a result of method calls. These are embedded in the ascx pages using the special tags <% %>
When performing memory dump analysis for the application, we find that many of those strings are not being garbage collected. Also, the ascx pages are compiled to temporary DLLs and they are held in memory. Is this responsible for causing the long strings to remain in memory and not be garbage collected ?
Note : The strings are larger than 85K in size.
© Stack Overflow or respective owner