473,468 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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
Nov 18 '05 #1
1 1621
Hi John,

I take it the workaround in the article wasn't any use to you.

Make sure you report it as a 1.1 bug as well?

Here's where: http://lab.msdn.microsoft.com/produc...k/default.aspx
"John Moore" <John Mo***@discussions.microsoft.com> wrote in message
news:46**********************************@microsof t.com...
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


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ola Natvig | last post by:
Hi all I'm working with a long running, threaded server which serves HTTP requests with content which are passed through a XSLT processor. The XSLT processor I'm using is the Pyana processor. ...
0
by: Iain | last post by:
I think my .net application may have the following memory leak: http://support.microsoft.com/default.aspx?scid=KB;EN- US;Q316775& I am calling c# code from an xslt script using the...
14
by: Piotrek | last post by:
Hi all. I have a web app, in which I use frames. My main frameset consists of three inner frames. When some button is pressed in frame A, then content of frame B is reloaded. I am using such...
16
by: KS | last post by:
Hello, I have a memory leak in my application and I have identified two lines of code that cause the leak. If I comment out these lines, the program runs fine. If left uncommented, the memory...
6
by: petermichaux | last post by:
Hi, Reading the Yahoo! UI AJAX library, there is a unique workaround for an apparent IE 6 memory leak with binding a function to onreadystatechange. Instead of binding a function to...
0
by: nejucomo | last post by:
Hi folks, Quick Synopsis: A test script demonstrates a memory leak when I use pythonic extensions of my builtin types, but if I use the builtin types themselves there is no memory leak. ...
9
by: Bruno Barberi Gnecco | last post by:
I'm using PHP to run a CLI application. It's a script run by cron that parses some HTML files (with DOM XML), and I ended up using PHP to integrate with the rest of the code that already runs the...
2
by: Jay | last post by:
I have a web app running on the windows CE device. In one of the asp.net pages - it has javascript code. That seems to have a memory leak. When I run the web app - in about one hour, the app hangs....
11
by: dhtml | last post by:
(originally mis-posted on m.p.s.jscript...) I've just closed all windows in Firefox and its using 244MB of memory. I have no idea why. I had GMail open, a page from unicode, the CLJ FAQ. ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.