"Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I got this problem in my project when I ran exe from release in other pc running in windows 10. It's perfectly works on my pc running in windows 7 and try on other OS like windows 8 with no problem. I can't figure out what was happening so I troubleshoot the compatibility and I set the target CPU on x86 but with no luck. This problem happens randomly, sometimes it works fine then sometimes got this problem again. I used ms access .accdb database and a crystal report. I can't show some code because it's bunch of them. I hope there's a solution, anything that can help is highly appreciated. Thanks in advance!