473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Using XsltTransform crashs asp process, help!

Hi,

BACKGROUND:
I have a VB.NET DLL that uses HttpModules, HttpHandlers etc... which
has been ported from a VB6 webclass application. I am developing on
WinXP Pro SP1, P4 2Ghz, 512MB Ram

I have written a thin wrapper class around the action of XML transforming.
Basically I create my class specify an XmlDocument and the name of the
transform file to use. It then sets up all the other objects it needs.
It uses XslTransform and in it's transform() method uses a StringWriter
object for the output.

This all works fine....most of the time.
However I recently ported another section of code. The XmlDocument
generated by this code if saved to a file is 200KB. When the transform()
method of my XslTransform object is called I waited for about 5 minutes
and it still hadn't finished, my CPU was also maxed out. If I press the
pause
process button the:
domXslt.Transform(node, Nothing, sw, Nothing)

.....line is highlighted. If I press the stop process button (or close the
browser)
then the VS.NET IDE refuses to respond until I use task manager to force the
aspnet_wp process to end.

Anybody have any ideas what is going on or how to go about solving this?

Regards,
Peter
Nov 18 '05 #1
1 1229
Hi,

Okay a bit of follow up.
It seems that the process has not crashed it's just hogging the CPU.
If I wait for roughly 11 minutes then it finishes processing.

This is obviously unacceptable since the output is going to a web
page.

I tried the same database with the original VB6 version that uses the
MSXML parser and it only took about 20 seconds roughly 96% faster.

20 seconds for a page is also not fantastic, but the page is showing
a lot of calculated statistics so thats not so bad. But to get 96% slower
is just not on.

Any ideas much appreciated.
Peter
"Peter Row" <pe*******@oxfordcc.co.uk> wrote in message
news:u1**************@TK2MSFTNGP10.phx.gbl...
Hi,

BACKGROUND:
I have a VB.NET DLL that uses HttpModules, HttpHandlers etc... which
has been ported from a VB6 webclass application. I am developing on
WinXP Pro SP1, P4 2Ghz, 512MB Ram

I have written a thin wrapper class around the action of XML transforming.
Basically I create my class specify an XmlDocument and the name of the
transform file to use. It then sets up all the other objects it needs.
It uses XslTransform and in it's transform() method uses a StringWriter
object for the output.

This all works fine....most of the time.
However I recently ported another section of code. The XmlDocument
generated by this code if saved to a file is 200KB. When the transform()
method of my XslTransform object is called I waited for about 5 minutes
and it still hadn't finished, my CPU was also maxed out. If I press the
pause
process button the:
domXslt.Transform(node, Nothing, sw, Nothing)

....line is highlighted. If I press the stop process button (or close the
browser)
then the VS.NET IDE refuses to respond until I use task manager to force the aspnet_wp process to end.

Anybody have any ideas what is going on or how to go about solving this?

Regards,
Peter

Nov 18 '05 #2

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

Similar topics

3
by: Torrent | last post by:
When Trying to Load an XSLT File with the XslTransform i got a rather annoying Exception being thrown "System.Xml.XPath.XPathException: XsltContext is needed for this query because of an unknown...
6
by: Mark Miller | last post by:
I have a scheduled job that uses different XSL templates to transform XML and save it to disk. I am having problems with the code below. The problem shows up on both my development machine (Windows...
0
by: Rocio | last post by:
I have a dataset with 5 columns. The first 4 columns are simply string columns, but the last one is another dataset with 4 simple columns. The problem is that, the XSLT transform only reads data...
3
by: Jan Schukat | last post by:
It s just a Windows application with a WinMain function, an own registered Window Class and a CreateWindowEx call, no mfc and other gimmicks. I made several applications with a the main window...
1
by: Peter Row | last post by:
Hi, BACKGROUND: I have a VB.NET DLL that uses HttpModules, HttpHandlers etc... which has been ported from a VB6 webclass application. I am developing on WinXP Pro SP1, P4 2Ghz, 512MB Ram I...
2
by: Marcus Schaefer | last post by:
Hello, I have a queer problem in my project (Visual Basic Express 2005): When I create a new Instance of one of my classes dim data as new CData(fname) <-- crash ! Dim frm as new...
6
by: HelpME | last post by:
I wrote a program in Vb.Net that was running fine. However I am unable to install it on a couple of machines. When i run it I get a windows error message that says My Project.exe has...
6
by: llothar | last post by:
While 90% of my application is written in Eiffel i have a few modules that are in C and i'm still gettings crashs from time to time. Not sure where it comes from but i thought about using lint as...
0
by: Michibeck | last post by:
Hi, I need some help regarding callback function written in c# and called from unmanaged c code. (c dll). The problem is that the callback function crashs after the first call with a memory...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.