How to dispose converter

Hello support …

We have used Converter.ConvertTemplate with data binding to create html and Converter.ConvertHTML to convert html to PDF files …

As our application module should support a multi thread running environment , we tried to write a small test program to exec Converter.ConvertTemplate and Converter.ConvertHTML in a looping mode and it will have out of memory exception errors about 100 - 150 times …

Based on this test , we think ASPOSE.HTML should provide a dispose function or GC like function to support components can work well in a multi thread running mode …

We need your help to provide a suggestion for this issue …

thanks !!

Mason Pai 10-31-2022


Please use the latest version of Aspose.HTML for .NET 22.10 and let us know how it goes on your side. Hope this helps you.

If you still face problem, please attach the following resources here for testing:

  • Your input document.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Hello support …

We have used Aspose.HTML for .NET 22.10 to rebuild a test program and it still will have out of memory errors after running a while …

We also have found 22.10 did have released partial memory but it did not released resources so clearly …

We also have attached our test program source file for your reference …

thanks !!

Mason Pai (8.5 MB)


We have logged this problem in our issue tracking system as HTMLNET-4097. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.


Your issue has been resolved and its fix will be available in the next version of Aspose.HTML for .NET i.e. 22.12. We will inform you via this forum thread once new version of Aspose.HTML for .NET is available.

The issues you have found earlier (filed as HTMLNET-4097) have been fixed in this update. This message was posted using Bugs notification tool by avpavlysh

How can we download the Aspose.HTML for .NET 23.1 ?

thanks !!


You can use NuGet Package Manager in Visual Studio to install Aspose.HTML for .NET 23.1.