Sample repository to reproduce that MemoryStreams are not released after printing with IronPDF.
Reproduction Steps:
- Run the application and perform a "warm-up" with one
Print a single PDF from...
options. - Using the
Diagnostic Tools
>Memory Usage
, take a snapshot of the current memory usage. - Perform any number of
Print 10 PDFs...
orPrint a single PDF from...
, noting how many PDFs have been generated. - Take another snapshot of the used memory and compare it to the first snapshot.
Within the comparison you should see instances of MemoryStream
equal to the number of PDFs that were printed.
This application will generate and store the printed PDFs in your "Documents" folder, so please remember to clean that up after reproducing the issue :D.
Status: Memory leak has been fixed in IronPdf 2021.12.4495
There was a secondary bug regarding missing content after printing to a PDF. This was fixed in the Prerelease version 2022.4.5250-eap.