out of memory errors on very large reports
Posted: Wed Nov 04, 2009 2:02 pm
We are receiving out of memory errors when running very very large reports for the flash viewer. The same report works as a PDF.
The process is using 1.2 gb of memory at the time.
-----------
Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
at System.IO.StreamWriter.Write(String value)
at System.Xml.XmlTextEncoder.Write(String text)
at System.Xml.XmlTextWriter.WriteString(String text)
at System.Xml.XmlWriter.WriteAttributeString(String localName, String value)
at Stimulsoft.Report.Components.StiText.Serialize(StiObjectStringConverter converter, XmlTextWriter tw)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.Serialize(Object obj, Stream stream, String application, StiSerializeTypes serializeType)
at Stimulsoft.Report.SaveLoad.StiXmlDocumentSLService.Save(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.SaveDocument(StiDocumentSLService service, Stream stream)
at Stimulsoft.Report.StiReport.SaveDocument(Stream stream)
at Stimulsoft.Report.StiReport.SaveDocumentToByteArray()
at Stimulsoft.Report.SaveLoad.StiPackedDocumentSLService.Save(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.SaveDocument(StiDocumentSLService service, Stream stream)
at Stimulsoft.Report.StiReport.SavePackedDocument(Stream stream)
The process is using 1.2 gb of memory at the time.
-----------
Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
at System.IO.StreamWriter.Write(String value)
at System.Xml.XmlTextEncoder.Write(String text)
at System.Xml.XmlTextWriter.WriteString(String text)
at System.Xml.XmlWriter.WriteAttributeString(String localName, String value)
at Stimulsoft.Report.Components.StiText.Serialize(StiObjectStringConverter converter, XmlTextWriter tw)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.Serialize(Object obj, Stream stream, String application, StiSerializeTypes serializeType)
at Stimulsoft.Report.SaveLoad.StiXmlDocumentSLService.Save(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.SaveDocument(StiDocumentSLService service, Stream stream)
at Stimulsoft.Report.StiReport.SaveDocument(Stream stream)
at Stimulsoft.Report.StiReport.SaveDocumentToByteArray()
at Stimulsoft.Report.SaveLoad.StiPackedDocumentSLService.Save(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.SaveDocument(StiDocumentSLService service, Stream stream)
at Stimulsoft.Report.StiReport.SavePackedDocument(Stream stream)