ASPOSE memory leak while transform to PDF using C#.NET

Hello,

We have implemented conversion of mht, XML & doc file formats to PDF using ASPOSE.
No issue during testing phase, but in production it started consuming more than 95% CPU utilization.
We are doubting our code & would like to see how to dispose the ASPOSE object or memoryStream properly after each use in our windows work flow service.
Do you have any suggestion/documentation/code sample of how dispose can be done. Please help.

Thanks,
Shekar.

Hi Shekar,


Thanks for contacting support.

Can you please share some resource files so that we can test the conversion at our end. We are sorry for this inconvenience.

PS, if you are using Aspose.Pdf.Document object for conversion/PDF generation, you can use pdfDocument.Dispose(); to close all the resources used by this object.