cancel
Showing results for 
Search instead for 
Did you mean: 

Viewer crashes App (Attempted to read or write protected memory)

patrick_simons2
Participant
0 Kudos

Hi,
We have one customer where the fact of opening the preview window or clicking on the print button in the viewer inside our ERP program crashes the program.

This happens sporadically.
Sometimes it's an APPCRASH without any message, the event log shows crashes of the ERP app within several modules (clr.dll, mfc140u.dll, ntdll.dll, crpe32.dll...)

Sometimes we get a callstack with the error "Attempted to read or write protected memory. This is often an indication that other memory is corrupt.":

StackTrace: 
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.PrintReportWithDialog(PageRequestContext pPageRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.PrintReportWithDialog(PageRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintReportWithDialog(PageRequestContext reqContext)
at CrystalDecisions.ReportSource.LocalReportSourceBase.PrintReportWithDialog(PageRequestContext reqContext)
at CrystalDecisions.Windows.Forms.MainReportDocument.PrintReportWithDialog(PageRequestContext context)
at CrystalDecisions.Windows.Forms.ReportDocumentBase.Print()
at CrystalDecisions.Windows.Forms.PageView.PrintReport()
at CrystalDecisions.Windows.Forms.PageView.printButton_Clicked(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

This on a MS Windows Server 2012 R2 Standard French x64. Our ERP program (32bit) uses Crystal Reports for Visual Studio SP31. The PrintMode is PrintOutputController.

The CR redistributables are installed in an automated way, so there should not be a problem. We also simplified the selected printers, changed the default printer, updated printer drivers, deactivated Antivirus, .... no success.

I also tried 1553469 - How to enable Database logging in Crystal Reports for Visual Studio 2010, but no relevant data found within that log.

Any ideas?

Patrick

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

SP 31 had a lot of viewer issues, I suggest upgrading to SP 32 and test again.

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

I also suggest upgrading Server 2012, it may be end of life...

Reminder, we don't patch CR for VS so only way to get R&D to look into an issue is to upgrade to the latest SP and test again.

Don

Answers (0)