PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Memory leakage in Migradoc PDF generation
http://forum.pdfsharp.com/viewtopic.php?f=3&t=4355
Page 1 of 1

Author:  Krushika Gujarati [ Tue Jul 19, 2022 12:23 pm ]
Post subject:  Memory leakage in Migradoc PDF generation

I'm using Migradoc in my WPF Application for PDF Report generation.
PDF Report contains:
1. Data Tables
2. Charts
3. Images

PDF Report has dynamic number of Pages(based on data pages are generated)
If I'm generating PDF Report continuously(5-6 times) then memory usage goes high
I've analyze some objects in visual studio using diagnoses tool.
Please refer below screen shot for top memory user objects.

MigraDoc.DocumentObjectModel.Shapes.LineFormat
PdfSharp.Charting.LineFormat
PdfSharp.Charting.FillFormat
MigraDoc.DocumentObjectModel.Shapes.FillFormat
MigraDoc.DocumentObjectModel.Shapes.Charts.PointX
PdfSharp.Charting.PointX

I'm Using MigraDoc version 1.32

Thanks,

Attachments:
image (1).png
image (1).png [ 20.74 KiB | Viewed 4941 times ]

Author:  TH-Soft [ Tue Jul 19, 2022 10:43 pm ]
Post subject:  Re: Memory leakage in Migradoc PDF generation

We are using MigraDoc in our application. Version 1.50 or 1.51.
After we ran document generation once, memory consumption does not go up if we run PDF generation again, can be 5 times, can be 10 times.
I don't call this a bug. Working as intended.

If you think there is a bug, make it replicable.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/