Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application crashes says : Access violation reading location

My application crashes after running for around 18 hours. I am not able to debug the point in the code where it actually crashes. I checked the call stack- it does not provide any information as such. The last few calls in the call stack are greyed out-meaning I cannot see the code of that part-they all belong to MFC libraries.

However, I get this 'MicroSoft Visual Studio' pop-up when it crashes which says :

Unhandled exception at 0x7c809e8a in NIMCAsst.exe: 0xC0000005: Access violation reading location 0x154c6000.

Could the above information be useful to understand where it is crashing.Is there any software that could tell me a particular memory address is held by which variable in the code.

like image 686
Rakesh Agarwal Avatar asked Dec 30 '22 22:12

Rakesh Agarwal


1 Answers

If you can't catch the exception sometimes you just have to go through your code line by line, very unpleasant but I'd put money on it being your code not in MFC (always is with my bugs). Check how you're using memory and what you're passing into the MFC functions extra carefully.

like image 148
Patrick Avatar answered Jan 26 '23 04:01

Patrick