After processing docx document containing vsdx object allocated memory was not collected.
It seems that something wrong with SKAbstractManagedStream while saving converted document.
image.png (35.1 KB)
doc.zip (197.4 KB)
static void ProcessDocument()
{
Document doc = new Document(@"D:\doc.docx");
HtmlSaveOptions saveOptions = new HtmlSaveOptions
{
ImagesFolderAlias = "images",
MemoryOptimization = true,
ExportHeadersFootersMode = ExportHeadersFootersMode.None,
ExportPageMargins = true,
ExportPageSetup = true,
ExportRelativeFontSize = true,
};
doc.Save(@"D:\trash.html", saveOptions);
}
static void Main(string[] args)
{
for (int i = 0; i < 50; i++)
{
ProcessDocument();
GC.Collect();
}
}