app.exe stopped working(c0000005) when gaming

Nobody1942

Reputable
Dec 7, 2015
19
0
4,510
Hi, I'm getting an application stopped working(c0000005) when trying to play games(Napoleon TW, BF4). I havent had this problem before but now its been bothering me for a couple of days. I used avast to scan the whole and it didn't find anything. Any help is appreciated.
System specs:
CPU: AMD FX-8350 4.0 GHz cooled with corsair's H60
GPU: MSI R9 380 gaming 2g
SSD: Hyperx fury 240GB
MoBo: MSI 970 gaming
OS: win 10 64bit
 

Nobody1942

Reputable
Dec 7, 2015
19
0
4,510
Memtest86 ran 2 passes with 0 errors. Altough it showed that I have 12GB of ram even though 16 was installed and bios says 16GB. So I tried to find a faulty ram stick but my system booted only if I had all four sticks installed. Resetting cmos did not help either.
 
here's the explanation:

Exception code c0000005 is the code for an access violation. That means that your program is accessing (either reading or writing) a memory address to which it does not have rights. Most commonly this is caused by:
•Accessing a stale pointer. That is accessing memory that has already been deallocated. Note that such stale pointer accesses do not always result in access violations. Only if the memory manager has returned the memory to the system do you get an access violation.
•Reading off the end of an array. This is when you have an array of length N and you access elements with index >=N.

 

Nobody1942

Reputable
Dec 7, 2015
19
0
4,510


So any idea how to solve it. I clean installed windows 10 and then installed all the programs again and the issue continues