HighTechTalks DotNet Forums  

XslTransform.Load holding memory

Dotnet XML microsoft.public.dotnet.xml


Discuss XslTransform.Load holding memory in the Dotnet XML forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Robert Gaut
 
Posts: n/a

Default XslTransform.Load holding memory - 04-06-2004 , 10:38 PM






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.Load() 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.GetCallingAssembly().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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.