Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Attempted to read or write protected memory.." error when CrViewer print button is clicked

I am getting the error "Attempted to read or write protected memory.." on print button click of the Crystal Report Viewer. This error is random and sometimes the report prints without any errors. Sometimes it gives error as "Handle is invalid". I have tried 2-3 solutions provided on internet like un-checking the "Suppress JIT optimization.."option , but nothing has worked for me. Please help!! (Other details : Crystal Reports 2011, Crystal Reports for VS2010 version 13.0.2, C# 2010 winforms application)

like image 521
SantoshiKC Avatar asked Nov 14 '22 05:11

SantoshiKC


1 Answers

I faced this problem on Windows7 64-bit only, and the Windows6.1-KB2695321-v2-x64 hotfix solved the problem.

I used Windows Hotfix Downloader to download the hotfix.

I hope this helps.

like image 102
Saleem Alsaleh Avatar answered Dec 21 '22 20:12

Saleem Alsaleh