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.
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;
//Memory leaked and not released.
Here is file used to reproduced: sample.zip (2.7 MB)
Can you check and help me with this issue?