I have added a Crystal Report Viewer in my Custom Report page. I'm using Data Set as a data source. The page is loading fine with report data first time. I When i click the next page button it is started loading the report forever. I could not stop the loading.
When i refresh the page i'm getting the following error message.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
My page has 4 check boxes with different Report name. Based on the Report check box selection, first i'm loading the Data set then assigning into Crystal Report Viewer. First time the report loading fine(with the paging issue). When i select the next report
check box and load the report, i'm getting the same error.
Please post the piece of code that assigns the recordset to Crystal report. This will help the members to give you the answer. Looks like this is memory allocation and clear related problem. However the code that loads the report is required to dig more
into the problem that you are facing.
None
0 Points
6 Posts
Attempted to read or write protected memory issue
Jul 16, 2014 03:34 PM|Karthik_CR|LINK
Hi,
I have added a Crystal Report Viewer in my Custom Report page. I'm using Data Set as a data source. The page is loading fine with report data first time. I When i click the next page button it is started loading the report forever. I could not stop the loading. When i refresh the page i'm getting the following error message.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
My page has 4 check boxes with different Report name. Based on the Report check box selection, first i'm loading the Data set then assigning into Crystal Report Viewer. First time the report loading fine(with the paging issue). When i select the next report check box and load the report, i'm getting the same error.
Please help me to fix this issue.
Member
220 Points
78 Posts
Re: Attempted to read or write protected memory issue
Jul 17, 2014 01:43 AM|Sirama|LINK
Please post the piece of code that assigns the recordset to Crystal report. This will help the members to give you the answer. Looks like this is memory allocation and clear related problem. However the code that loads the report is required to dig more into the problem that you are facing.
None
0 Points
6 Posts
Re: Attempted to read or write protected memory issue
Jul 17, 2014 08:50 AM|Karthik_CR|LINK
here is code which bind the dataset on CRV.
string reportPath = string.Empty;
reportPath = Server.MapPath("/CR_Reports/CustomReportDesignWith10Columns.rpt");
_logObj.Debug("Report Path :" + reportPath);
reportDocument.Load(reportPath);
reportDocument.SetDataSource(ds);
CustomReportViewer.Visible = true;
Session["CrystalReportSource"] = reportDocument;
CustomReportViewer.ReportSource = reportDocument;