Posted 1 July 2019, 8:10 pm EST
Hello mohitg !
The link to the AR13 hotfix made my report come up and it worked 1st time in debug x86, the second time i run it i got out of memory…
The memory consumption peaked at 1Gb ram but dropped down and peaked up 1Gb a couple of times.
Its difficult to send you code samples for this but i provided the files in attached file.
We have a global SectionReport document where we Add pages for each report that is created.
The main loop for the report that we get the error in is like this:
pdoc6_A4p = new Rpt6.Rpt06_A4p();
pdoc6_A4p.Document.Name = Properties.Resources.IDS_RappName_6;
pdoc6_A4p.strXmlFile = strXmlFile;
pdoc6_A4p.iStartPage = iStartPage;
pdoc6_A4p.bMultiRpt = bMultiRpt;
pdoc6_A4p.Document.CacheToDisk = true;
pdoc6_A4p.Document.CacheToDiskLocation = System.IO.Path.GetTempPath();
try
{
pdoc6_A4p.Run(true); <— Here it stops with exception after a while …
}
catch (Exception err)
{
MessageBox.Show(err.Message, “Rpt6”, MessageBoxButtons.OK,
MessageBoxIcon.Error);
pdoc6_A4p.Dispose();
pdoc6_A4p = null;
throw;
}
pdoc6_A4p.Document.Bookmarks.Clear();
Bookmark bk = new Bookmark();
bk.Label = Properties.Resources.IDS_RappName_6;
bk.PageNumber = iStartPage;
pDoc.Document.Bookmarks.Add(bk);
for (int i = 0; i < pdoc6_A4p.Document.Pages.Count; i++)
{
pDoc.Document.Pages.Add(pdoc6_A4p.Document.Pages[i]);
}
…
the build i was running in AR12: 12.2.13986.0
SectReport.zip