KB 316775 reproes in .net 1.1 - XSLT with script has memory leak

G

Guest

I have a set of code that is called on every page load that loads an xslt
file. The xslt file has an embedded <script> tag. Loading the page mutliple
times causes aspnet_wp.exe to use all available memory and then reset. As
this happens several times over the course of an 8 hour stress run, I'm
looking for a solution.

The xslt file has the following:
<xsl:if test="$strPageCaller=''">
<SCRIPT LANGUAGE="JavaScript">BPB()</SCRIPT>
</xsl:if>
<xsl:if test="$strPageCaller!=''">
<SCRIPT LANGUAGE="JavaScript">if (history.length > ((bNS)?1:0))
document.write("<A class='p1s23'
href='Javascript:history.go({$strPageCaller});'><B>Return to
Previous</B></A>");</SCRIPT>
</xsl:if>

The calling code is this:
XmlDocument l_objXMLDoc = new XmlDocument();
System.IO.StringWriter l_objWriter = null;
XslTransform xslt = null;
l_objXMLDoc.LoadXml(m_strXML);

// Create an XPathNavigator to use for the transform.
XPathNavigator nav = l_objXMLDoc.CreateNavigator();

// Transform the file.
l_objWriter = new System.IO.StringWriter();
xslt = new XslTransform();
xslt.Load(Server.MapPath(
ConfigurationSettings.AppSettings["XSLT_PATH"] // get path for xslt file
storage
+
"/xsltfile.xslt") // append physical filename to path
);

xslt.Transform(nav, l_objargList, l_objWriter, null );
l_strOutput = l_objWriter.ToString();

The system configuration is win2k advanced server with latest service pack
and dot net 1.1.

Any ideas?

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top