PdfTiffImage leaking memory?

When you create a new PdfTiffImage from a Stream, it creates a new System.Drawing.Image:



However, this image is never disposed of.  We've noticed some memory leaks in our application that appear to trace back to here.


3 Replies

GK Gowthamraj Kumar Syncfusion Team October 4, 2021 02:29 PM UTC

Hi Joshua, 
 
Thank you for contacting Syncfusion support.

 
Currently, we are analyzing your requirement “Disposing the PdfTiffImage API in Net Core” on our end  and we will update the further details on October 6th 2021.

 
Regards, 
Gowthamraj K 



GK Gowthamraj Kumar Syncfusion Team October 6, 2021 01:00 PM UTC

Hi Joshua, 
 
Thank you for your patience,  
 
We have tried to replicate the memory leak problem using PdfTiffimage, but we regret to let you know, we were unable to reproduce the memory leak problem on your end. It works properly without any memory leak. 
 
 
 
 
We have found the image instance is not disposed of for PdfTiffimage. We have already Dispose() method for PdfBitmap and we have planned to expose a similar API in PdfTiffImage to dispose of the image objects.  
We will include the API changes in our upcoming weekly NuGet release and which is expected to be published on October 12th, 2021. 
 
Please let us know if you need a patch for any other main release version. We will create a patch for the same and update you. 
 
Please use the below feedback link to track the status of the reported bug.  
 
Regards, 
Gowthamraj K 



GK Gowthamraj Kumar Syncfusion Team October 12, 2021 11:42 AM UTC

Hi Joshua, 
 
Thank you for your patience. 
 
We have added Dispose method for PdfTiffImage to dispose of the image objects and the fix is included in our latest weekly NuGet release (v19.3.0.45).  
 
Please use the below link to download our latest weekly NuGet,      
 
Please let us know if you have any concerns on this. 
 
Regards 
Gowthamraj K 


Loader.
Up arrow icon