473,586 Members | 2,817 Online
Bytes | Software Development & Data Engineering Community
+ 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="$strPageC aller=''">
<SCRIPT LANGUAGE="JavaS cript">BPB()</SCRIPT>
</xsl:if>
<xsl:if test="$strPageC aller!=''">
<SCRIPT LANGUAGE="JavaS cript">if (history.length > ((bNS)?1:0))
document.write( "<A class='p1s23'
href='Javascrip t:history.go({$ strPageCaller}) ;'><B>Return to
Previous</B></A>");</SCRIPT>
</xsl:if>

The calling code is this:
XmlDocument l_objXMLDoc = new XmlDocument();
System.IO.Strin gWriter l_objWriter = null;
XslTransform xslt = null;
l_objXMLDoc.Loa dXml(m_strXML);

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

// Transform the file.
l_objWriter = new System.IO.Strin gWriter();
xslt = new XslTransform();
xslt.Load(Serve r.MapPath(
ConfigurationSe ttings.AppSetti ngs["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.ToS tring();

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

Any ideas?

John
Nov 18 '05 #1
1 1630
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***@discussio ns.microsoft.co m> wrote in message
news:46******** *************** ***********@mic rosoft.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="$strPageC aller=''">
<SCRIPT LANGUAGE="JavaS cript">BPB()</SCRIPT>
</xsl:if>
<xsl:if test="$strPageC aller!=''">
<SCRIPT LANGUAGE="JavaS cript">if (history.length > ((bNS)?1:0))
document.write( "<A class='p1s23'
href='Javascrip t:history.go({$ strPageCaller}) ;'><B>Return to
Previous</B></A>");</SCRIPT>
</xsl:if>

The calling code is this:
XmlDocument l_objXMLDoc = new XmlDocument();
System.IO.Strin gWriter l_objWriter = null;
XslTransform xslt = null;
l_objXMLDoc.Loa dXml(m_strXML);

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

// Transform the file.
l_objWriter = new System.IO.Strin gWriter();
xslt = new XslTransform();
xslt.Load(Serve r.MapPath(
ConfigurationSe ttings.AppSetti ngs["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.ToS tring();

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
1583
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. I have one compiled stylesheet which I uses to process all responses. This way I only need to read and compile the stylesheet once. When serving...
0
384
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 msxsl:script tag. Every week or so, our company has to reboot our webserver due to a memory leak. We do run some asp apps off the server as well, but I'm...
14
2690
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 code to achieve this: string strRedirect; strRedirect = "<script language='Javascript'>"; strRedirect +=...
16
510
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 usages keeps increasing till the program terminates due to lack of available memory. I have marked the two lines that cause this problem in the code...
6
2235
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 onreadystatechange, the library polls the readystate of the request object until it becomes 4. Then it calls the handler function. This polling seems like a...
0
1661
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. If you are interested in how builtin/pure-python inheritance interacts
9
9220
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 website. The problem is: it's eating more memory than a black hole. It eats the current limit of 256MB set in php.ini, in an application that would...
2
2692
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. I looked at the memory and it seems to be full. I removed all the javascript code - and the app seems to be have no leaks. As soon as I include my...
11
4216
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. I've noticed that createElement leaks. It's obvious with form controls because the form keeps the control name as a property. Example:
0
8200
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8215
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6610
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.