"Attempting to read or write protected memory .." when you press the CrViewer print button

I get the error message "Trying to read or write protected memory" on the click button of the Crystal Report Viewer click button. This error is random, and sometimes the report prints without any errors. Sometimes this gives an error because the "Pen is invalid." I tried 2-3 solutions provided on the Internet, for example, to cancel the option "Suppress JIT optimization ..", but nothing worked for me. Please help !! (Other details: Crystal Reports 2011, Crystal Reports for VS2010 version 13.0.2, Winforms C # 2010 application)

+5
source share
2 answers

I encountered this problem only on the 64-bit version of Windows7, and the fix fixed the Windows6.1-KB2695321-v2-x64problem.

I used the Windows Hotfix Downloader to download the patch.

Hope this helps.

+1
source

I used this method to avoid this problem:

When printing directly to the printer, the problem does not appear. or you can create printdialog and use it to print a report. I did it and it all works great

0

All Articles