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
Report with many images (2000+) will crash with out of memory exception

I have a report that has a grid with data and multiple images.  The report will show 5 images per grid row with possibly many rows.  The amount of data is dynamic.

As the report grows its memory footprint also grows to the point where the app will crash with an out of memory exception.

I have tried compressing the image using the JPeg Encoder and have tried monitoring memory, publishing the report, creating a new report in an effort to start over and clear memory.

I have added GC.Collect, GC.WaitForPendingFinalizers(), GC.Collect() after publishing but the memory never decreases.  It's as if the Report is holding on to everything.

While it does help a little with memory eventually the app will crash because of the Out of Memory exception.

I've seen similar posts to this issue but none fixes the problem.

Is there any way to solve this? 

Parents Reply Children