It is working for you as you are converting with higher memory. I just converted with 1.5 GB available physical memory and it fails with 22 MB file. Before I started conversion it was 1.6 GB consumed and when I passed control through Document load() it gone upto 2.6 GB so 1 GB consumed for loading document and when I passed control through document.Save() it consumed all 3 GB and crashed with out of memory exception. Sometimes it crashes with FileCorruptedExcetion as outer exception and outOfMemory as innner exception. Following is sample. Can you please send me the calculation to get required physical memory for the given source file size urgently? I need for .doc and .docx both. I guess it requires 100 times more memory based on the test results I got with different size.
Timestamp: 2/28/2012 4:23:42 PM
Message: HandlingInstanceID: 166dc9d8-b605-4eb0-bcf6-091309885ceb
An exception of type ‘Aspose.Words.FileCorruptedException’ occurred and was caught.
2012-02-28 11:23:42Z
Aspose.Words.FileCorruptedException, Aspose.Words, Version=11.0.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56
The document appears to be corrupted and cannot be loaded.
Aspose.Words in file: C:\WINDOWS\TEMP\IntraLinks\d143fb57-f4c6-4093-951f-15a867cd172f.docx
System.Collections.ListDictionaryInternal
Void x5d4db34d48fb3129(System.IO.Stream, Aspose.Words.LoadOptions)
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document…ctor(String fileName, LoadOptions loadOptions)
at Aspose.Words.Document…ctor(String fileName)
at Intralinks.Common.Utilities.AsposeConverter.ConvertWordToPdf(String sourceFilePath, String destinationFilePath) in c:\ilbuilds\pdfconv\build_trunk\CommonUtilities\AsposeConverter.cs:line 39
at Intralinks.Common.Utilities.CommonUtilities.ConvertOfficeDocsToPDF(String sourceFile, String destinationFolder, Boolean useOriginalFileName) in c:\ilbuilds\pdfconv\build_trunk\CommonUtilities\CommonUtilities.cs:line 1436
xe8730a664ff488a4.xc5e345d2a919c94b, Aspose.Words, Version=11.0.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56
Cannot extract
Aspose.Words
System.Collections.ListDictionaryInternal
Void x4a77f4b2eb397877(System.String, System.IO.Stream, System.String)
at xe8730a664ff488a4.x990d54f34b2b5118.x4a77f4b2eb397877(String x4abc0735d5951ac3, Stream x7f5d4a91157364b5, String xe8e4b5871d71a79a)
at xfc5388ad7dff404f.xe965bada78e2d6b1.xfc0ead15b6083996(Stream xcf18e5243f8d5fd3)
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
System.OutOfMemoryException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Exception of type ‘System.OutOfMemoryException’ was thrown.
mscorlib
System.Collections.ListDictionaryInternal
Void set_Capacity(Int32)
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 xe8730a664ff488a4.x990d54f34b2b5118._x3188c73c7f209072(Stream x9c13656d94fc62d0)
at xe8730a664ff488a4.x990d54f34b2b5118.x4a77f4b2eb397877(String x4abc0735d5951ac3, Stream x7f5d4a91157364b5, String xe8e4b5871d71a79a)
Category: Logging Exception
Priority: 1
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: BOSPDFCONV02
Application Domain: ILPDFConversionService.exe
Process Id: 2172
Process Name: C:\PDFConvService\DEV2.pdfconv\instance1\Release\ILPDFConversionService.exe
Win32 Thread Id: 5376
Thread Name:
Extended Properties: Product Version - 3.1.26984.0