473,769 Members | 5,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XslTransform.Lo ad holding memory

I have a Windows service that reads messages off a message queue and
performs several XSL transforms per message. The XSL documents are embedded
resources in the executing assembly and several contain <xsl:include>
statements. I'm using the XslTransform.Lo ad() method which accepts an
XPathNavigator, an XmlResolver, and an Evidence object. I've created a
custom XmlResolver that resolves the embedded resource XSL documents and I'm
passing Assembly.GetCal lingAssembly(). Evidence for the Evidence.

Here's the problem: The Evidence object is not releasing its resources and
I'm getting OutOfMemory errors after approximately 3200 calls to the Load
method. The service starts at around 12MB and tops off around 1.7GB. I ran
tests on it all day today and narrowed it down to the Load method and the
Evidence parameter.

If anyone has any experience with this or a solution to this issue, please
let me know ASAP. This is a major part of my current project.

Thank you,

Robert Gaut
Application Developer - Master
Reynolds Web Solutions
Nov 12 '05 #1
0 1357

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

Similar topics

0
1082
by: Steve Myers | last post by:
I get an 'Invalid XML' error when I try and load an xslt file into memory using the Xsl.XslTransform component in asp.net. The xml is perfectly valid (can be viewed in IE) but the app refuses to load it and throws the Invalid Xml error message Dim _xsl As Xsl.XslTransform = New Xsl.XslTransfor Dim xp As XPath.XPathNavigator = _XmlDocument.CreateNavigator( _xsl.Load(Request.PhysicalApplicationPath &...
3
2270
by: Steve | last post by:
Is there any way of specifying the startMode when using the xslTransform class? We are updating code which used msxml to the system.xml classes but can find no way to specify the startMode. We use this so that we can specify different templates to be used by the same xml node. Know that we could use global params, but would rather not have to update all teh stylesheets and any code that uses msxml and the same stylesheets.
1
1717
by: Yuriy | last post by:
Hi, Can anybody explain the following? Say I have the following source XML and XSLT (see below). No matter what this XSLT does. It is just a sample to show a problem. the idea is that XSLT transforms small XML into quite big XML. Now, I have a straightforward C# (see below) code that does this transform and writes result into XmlTextWriter. (Oleg's NXSLT.EXE is also suitable).
1
2795
by: manlio | last post by:
how can I load a XSL string (not an xsl file!!) with XslTransform ??? If I use the code: // Create a new XslTransform class and load the stylesheet XslTransform myXslTransform = new XslTransform(); myXslTransform.Load("myFile.xsl"); it run, but I need load an XSL string:
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10222
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9866
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.