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.
Hello Vignesh,
Thank you for your patience while I was looking into this matter for you.
I have investigated your issue, and I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 273995. You could see it in your account on our web site in the Support Activity page once you log in with your credentials.
Please let me know if you need any further assistance.
Regards,Viktor KombovEntry Level Software DeveloperInfragistics, Inc.
Hello Divya,
Please find the answers inline.
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,
Vignesh