Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The instruction at "<address>" referenced memory at "<address>". The memory could not be "read."

Tags:

c++

c

winapi

A c/c++ app throws that error, how to start to debug (better idea than adding print statements)?


1 Answers

Is the second address a very small number, like 0x00000001 or 0x00000000? If so, you probably just forgot to initialize a pointer.

In any case, standard debugging tricks apply: start isolating the problem by noticing when it happens and narrowing things down from there.

like image 91
John Feminella Avatar answered Jan 24 '26 02:01

John Feminella



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!