|126289||Oct 5,2016 01:32 PM UTC||Oct 6,2016 12:36 PM UTC||WinForms||1|
We are using your Syncfusion.Pdf library and faced with a memory leak.
byte content = …;
byte xmlFormData = …;
using (var pdfInStream = new MemoryStream(content, false))
using (var pdfDocument = new PdfLoadedDocument(pdfInStream))
using (var xmlFormDataStream = new MemoryStream(xmlFormData))
pdfDocument.Form.Flatten = true;
using (var pdfDocumentStream = new MemoryStream())
After running this code multiple times memory fills with a big amount of objects that can’t be garbage collected:
Service gets bigger and bigger and eventually hangs.
The reason is the static s_cache variable in Syncfusion.Pdf.PdfDocument class, that stores all the references to this objects:
The problem exists in 14.3451.0.49 library version.
Can you please assist us with this?
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
or the page will be automatically redirected to sign-in page in 10 seconds.