Memory leak when converting from DXF to TIFF when using Aspose CAD 22.2

I’m upgrading Aspose CAD and found an issue with it.
Converting a DXF file to TIFF using Aspose CAD, after a period time, the converting failed with Exception error message: “Image saving failed.”
The problem is that after throwing exception, Aspose CAD leak memory.
Sample code:
using(var fileStream = new FileStream(inFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
using(var image = Image.Load(fileStream))
var rasterizationOptions = new CadRasterizationOptions
// Set page width & height
PageWidth = image.Width,
PageHeight = image.Height
ImageOptionsBase option= new TiffOptions(TiffExpectedFormat.Default)
Compression = TiffCompressions.Lzw
option.VectorRasterizationOptions = rasterizationOptions;
image.Save(outFile, option);
catch(Exception e)
//Memory leaked and not released.

Here is file used to reproduced: (2.7 MB)
Can you check and help me with this issue?
Thank you

Hi, we have created CADNET-8615 to investigate this issue.

Hi @Oleksii.Gorokhovatskyi,
Is there any update on this issue?
I see CADNET-8615 in release notes of version 22.4

Hello. We had a discussion once the issue appeared and today too. Our point of view - there is no memory leak here, if we run this snippet in cycle a lot of times the quantity of used memory does not increase. Additionally, the Image object is almost entirely disposed already inside the catch exception block.

The issues you have found earlier (filed as CADNET-8615) have been fixed in this Aspose.CAD for .NET 23.1 update. This message was posted using Bugs notification tool by Oleksii.Gorokhovatskyi