473,665 Members | 2,820 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.OutOfMem oryException on Large Files)

hello,

I get XXX when I run the following code (if and only if the outcome of
transformation is beyond 20 MB)

With _Xslt

.Load(XslFile)

.Transform(XmlD ocument, Nothing, MyWriter, Nothing)

End With

If I run this in .NET 2.0 Beta 2, it gets on and it's much faster as well.
If run the same on MSXML 4.0, it's works and it's much faster too.

Is this a known issue in .NET 1.1 ? Is there a way around it? or do I have
to switch to MS XML 4.0 for now?

--
Mohammed Banat

Nov 12 '05 #1
3 6151


Mohd Banat wrote:

I get XXX when I run the following code (if and only if the outcome of
transformation is beyond 20 MB)

With _Xslt

.Load(XslFile)

.Transform(XmlD ocument, Nothing, MyWriter, Nothing)

End With

If I run this in .NET 2.0 Beta 2, it gets on and it's much faster as well.
If you are using XslCompiledTran sform instead of XslTransform in .NET
2.0 then you should certainly see much better performance. Or are you
using XslTransform in .NET 1.1 and .NET 2.0 and then see much of a
performance difference?

Is this a known issue in .NET 1.1 ? Is there a way around it?


A workaround might depend on the stylesheet and the XML input and
finding more efficient ways to transform which could involve changing
the stylesheet, breaking up the input, breaking up the output.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 12 '05 #2
Well,

first, by XXX I meant System.OutOfMem oryException (sorry).

second, I'm not xml/xsl/xslt guru, but I beleive that what we have is fairly
simple, and I'm not sure if it can be optimized. We're trying to generate
WordML out of some database queries. The output XML is WordML, and cannot be
chunked easily, I assume.

Is there anything that we can check? like an article on optimization (if
that's the way to go)?

How come .NET 2.0 and XML 4.0 has no problem?

--
Mohammed Banat

"Mohd Banat" wrote:
hello,

I get XXX when I run the following code (if and only if the outcome of
transformation is beyond 20 MB)

With _Xslt

.Load(XslFile)

.Transform(XmlD ocument, Nothing, MyWriter, Nothing)

End With

If I run this in .NET 2.0 Beta 2, it gets on and it's much faster as well.
If run the same on MSXML 4.0, it's works and it's much faster too.

Is this a known issue in .NET 1.1 ? Is there a way around it? or do I have
to switch to MS XML 4.0 for now?

--
Mohammed Banat

Nov 12 '05 #3
Hi Mohanmmed,

Is the Xml document very large and the XSL transformation comsumes a lot of
resource? Yes, as I know, the MSXML, .NET xml 1.1 and 2.0 has a lot of
difference. .NET xml 2.0 has a lot of optimizations than 1.1. And the
implementation of .NET xml and MSXML is totoally different. It's hard to
reproduce this error on my machine, even with a large xml doc. In this
case, I suggest you try to contact Microsoft PSS for this issue. If this is
really a bug, the service will be free of charge.

http://support.microsoft.com/default...;OfferProPhone

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 12 '05 #4

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

Similar topics

0
2305
by: solomon | last post by:
Hi, I have installed VS.Net(Ver:7.0.9466) & .Net_Frameword_1.0 (Ver: 1.0.3705). Until recently, I could develop and run applications using the IDE. A couple of days ago, I downloaded a sample application (remoting example) that required .Net_Framework_1.1. Since then I can only run console apps. If I try to run a windows app with only a form, I get the following error message:
1
3440
by: Ripul Handa | last post by:
Hi We are running IIS 5.0 cluster with cisco local director. We are running a website on 2 webservers and I have been observing that from past few days we have are getting this error message of and on Error Messag Remote IP:66.122.242.6 Host:216.211.212.2
1
4977
by: SMG - Idealake | last post by:
Hi all, I am getting following error on my error, what could be the reason? Exception of type System.OutOfMemoryException was thrown. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.OutOfMemoryException: Exception of type System.OutOfMemoryException was thrown.
1
3887
by: Ashkan Daie | last post by:
Hi All, When trying to install a performance counter via InstallUtil I get the following exception: Creating performance counter category Enterprise Library Caching. An exception occurred during the Install phase. System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was
6
4289
by: chad | last post by:
assuming I have 2GB memory. And 1.5GB available. dim c1(,) as byte redim c1(1000, 1024*1024) throws system.outofmemoryexception. I'm like... huh? Initially I thought a lot of space is taken up by GC. So, I up my memory to 4GB. Same thing.... So, I read microsoft documents on this type of exception. Doesn't help much. They were saying to try and keep arrays to 64KB. But, that's not much to work
0
4407
by: AY | last post by:
Hello, We use a third party reporting system (Actuate) which provides soap services via WSDL. My web application was initially built in Visual Studio 2003 using .NET 1.1. I was able to download huge files, i.e., over 100MB with no problems. Actuate also has a utility (c# win app) that has no issues with a .net 1.1 version.
8
12555
by: =?Utf-8?B?UGlnZ3k=?= | last post by:
Hi to all, I am getting this System.OutOfMemoryException calling the Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(<stream>,<Obj>) method. The type of <streamis IO.MemoryStream =====Exception: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
3
27260
by: =?Utf-8?B?aml0ZW4=?= | last post by:
Hi, We are getting System.OutOfMemoryException exception in an asp.net application hosted on IIS. The problem is popping up randomly once every few days.The web server needs to be restarted as users keep on getting 'Server Application Unavailable' otherwise. Could anyone please tell abt the possible causes and solution for this.
5
5055
by: Aryan | last post by:
Hi, I am using C# with framework 2.0 and creating PDF files on-fly, along with this I am using Windows 2003 Server. I am using Byte to take the data input and then save into pdf format on harddrive location. Now after creating few successful pdf files, I am getting "System.OutOfMemoryException".
0
8438
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8348
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
8863
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
8779
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8636
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
7376
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
6187
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
5660
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2004
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.