Hi support,
I detect some memory leak when I use SaveAsPdf in a loop.
The memory increase until 1.7 Gb just before OutOfMemoryException occurred during the 1442 document loop.
May be it’s the similar 6863 problem.
I join one of the 2000 identical .docx file
Here is my C# code :
using System;
using Aspose.Words;
namespace MyconsoleAppLoop
{
class Program
{
static void Main(string[] args)
{
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Words.lic");
int loop = 1;
if (args.Length > 1) int.TryParse(args[1], out loop);
for (int i = 1; i <= loop; i++)
{
Console.WriteLine(i);
string fileNameDocX = args[0] + "." + i + ".docx";
string fileNamePdf = args[0] + "." + i + ".pdf";
Console.WriteLine("Debut " + fileNameDocX);
Aspose.Words.Document mDocument;
mDocument = new Aspose.Words.Document(fileNameDocX);
mDocument.Save(fileNamePdf);
Console.WriteLine("Fin");
}
}
}
}