FlexReport runs out of memory when exporting to PDF

Originally Posted 13 March 2017, 2:02 pm EST

  • Originally Posted 13 March 2017, 2:02 pm EST

    Has anyone noticed that FlexReport, specifically C1Zip uses up memory when exporting to pdf. After refactoring my application, to be sure I disposed of all objects, I was still consuming 2 gigabytes of memory after exporting 538 reports. I took a snapshot of the heap and noticed that the only thing growing was C1Zip. I set the PDFFilter UseCompression property to false and the memory stopped growing but the file size increase by 5 or 6 times. I am disposing of the PDFFilter after each report but the C1Zip memory still exists (when UseCompression set to true). Is there any way to release the memory between document exports.
  • Reply

    Hi,
    Can you please share a small sample code and a memory snapshot with us? So that we can observe the same issue at my end and assist you accordingly.

    Thanks,
    Sonu
  • Reply

    Attached is a demonstration of the problem I am seeing. I have included screen shots of the memory usage provided by VS2015.
  • Reply

    Attached is the project file.
    2017/03/TestApp.zip
  • Reply

    Hi,
    I forwarded this to concern team. Will get back to you once there is any information from them.

    Thanks,
    Sonu
  • Marked as Answer

    Reply

    Hi,

    This issue has been fixed in the latest release build which can be downloaded from here:

    http://prerelease.componentone.com/dotnet40/c1winforms/2017-t2/C1WinForms.4_4.0.20172.271.zip
    http://prerelease.componentone.com/dotnet20/c1winforms/2017-t2/C1WinForms.2_2.0.20172.271.zip

    Thanks,
    Esha
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels