Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Memory Leak in Infragistics.Documents.Reports.Report (c#)
posted

Hi Team,

we are using Infragistics.Documents.Reports.Report to generate the PDF report including the images. when we generate the reports with 5k records, the memory shoot ups to 3.5 GB and not reducing back. when we try with 20k records, memory goes to 12 GB. we did some analysis and found that few part of the codes plays the major role on consuming or leaking the memory, below are those.

1.

byte[] imageBytes = Convert.FromBase64String(inputString);
MemoryStream ms = new MemoryStream(imageBytes);
Image img = new Infragistics.Documents.Reports.Graphics.Image(ms);
return img;

2.

var reportStream = new MemoryStream();
report.Publish(reportStream, exportFileFormat);

Expecting your quick support to resolve this issue as we have a release on next week.

Parents
No Data
Reply
  • 7375
    Offline posted

    Hello Vignesh, 

    Thank you for contacting. Since you are talking about PDF ,that means you are using our WinForm products?

    May I know which version of controls you are using ? 

    The code you are showing is I believe your?

    If I understand correctly you are trying to export 5K or 20 K records  into PDF contains images?

    if so then consuming 3.5 GB or12 GB is something I would say expecting. 

    Would like to know how you are memory profiling ? Using task manager or using some tool? 

    If you can share your sample I can memory profile it using ANTS memory profiler to test if this is indeed expected or we can custom it somehow.

    Regards,

Children