Hello,
We are having OutOfMemoryException while opening 19Mb doc file and trying to save it as docx. Task manager shows spike in memory of 1.3Gb and then application crashes. I saw earlier posts on similar subject and just want to know if it still unresolved.
System.OutOfMemoryException was caught
Message="Exception of type 'System.OutOfMemoryException' was thrown."
Source="mscorlib"
StackTrace:
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.XmlTextWriter.InternalWriteEndElement(Boolean longFormat)
at System.Xml.XmlTextWriter.WriteEndElement()
at .㇗.㇠(String ㇟)
at ㆾ.ㇴ.VisitParagraphEnd(Paragraph para)
at Aspose.Words.Paragraph.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.ᗐ(DocumentVisitor ڛ)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at ㆾ.ㇴ.㈗(CompositeNode ㈘)
at ㆾ..㇆()
at ㆾ..DoWrite()
at ㆾ.ㇴ.ٹ()
at ㆾ.ㆽ.㇆()
at ㆾ.ㆽ.⣓(⢚ ⢙)
at Aspose.Words.Document.ᖚ(Stream ֲ, String ֺ, SaveFormat ᖛ)
at Aspose.Words.Document.Save(String fileName, SaveFormat fileFormat)
at Aspose.Words.Document.Save(String fileName)
at CJLRDLogic.OpenXMLDocument.DocumentHandler2.GenerateSegmentedPDFs(String directory, String guid, String docName) in C:\Development\CJLRD\CJLRDLogic\OpenXMLDocument\DocumentHandler2.cs:line 79
at CJLRDLogic.OpenXMLDocument.DocumentHandler2.ProcessAgreement(String dir, String fileNameWord, String guid, String& PdfCopyName, List`1& documentSegments) in C:\Development\CJLRD\CJLRDLogic\OpenXMLDocument\DocumentHandler2.cs:line 54
InnerException:
Thanks,
oleg