Posted 22 May 2025, 4:30 am EST - Updated 22 May 2025, 4:32 am EST
Hi, my name is Truong.
Currently our product is using Active Report 12.3 in ASP.NET 4.8 to creating and viewing reports.
I realized that the SectionReport return by OnCreateReportHandler seem not to be disposed at all. The app memory size keep inscreasing whenever I’m creating new report from 300mb to 4gb after 4, 5 heavy report and it still keeping those reports in memory even after 1 hour of inactivity.
protected override object OnCreateReportHandler(string sReportRunOptions)
This code will return to OnCreateReportHandler in which will return as Object:
reportRunValue.BranchId = item;
using (ProfitDetailed rptDetailed = new ProfitDetailed(reportRunValue,....))
{
rptDetailed.Run();
for (int i = 0; i < rptDetailed.Document.Pages.Count; i++)
{
rptFinal.Document.Pages.Add(rptDetailed.Document.Pages[i]);
}
}
return rptFinal;