Memory usage in FR.Net
danni
Denmark
Hi
I have made a small report designer and a preview form based on Fr.Net.
Applications that use the forms run on windows terminals. I need to minimize the memory usage mainly from preview form.
The first time the application do a "ShowPreview" then the memory usage increase about 25 MB, the following tries within the Apliacation thread, the increase is about 15 MB.
This means if I start previewing on a lot of report the application will use a huge amount of memory.
Is there any way I can flush the memory useage of the PrefiewForm and the memory used for generatig a report?
Thanks.
I have made a small report designer and a preview form based on Fr.Net.
Applications that use the forms run on windows terminals. I need to minimize the memory usage mainly from preview form.
The first time the application do a "ShowPreview" then the memory usage increase about 25 MB, the following tries within the Apliacation thread, the increase is about 15 MB.
This means if I start previewing on a lot of report the application will use a huge amount of memory.
Is there any way I can flush the memory useage of the PrefiewForm and the memory used for generatig a report?
Thanks.
Comments
It depends on your report complexity. I've made some tests with demo reports. Each new report opened in a separate preview window eats about 5mb.
You can minimize the memory usage in the following ways:
- use report.UseFileCache property to minimize the memory usage during preparing a report;
- use FastReport.Utils.Config.PreviewSettings.PagesInCache property to minimize the memory usage while previewing a report.