Re: memory instruction reference can't be read

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"mmlab_js" <mmlabjs@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2FF4ECB3-5164-426B-A5C4-A387141585E0@xxxxxxxxxxxxxxxx
Hi,
Compiler:Visual C++ 6.0
In debug configuration, I can build the project and run it without error.
But in release configuration, I can build the project and run it.
When I click one button, the compiler shows:
"The instruction at "0x004022ff" referenced memory at "0x00000030". The
memory could not be read." What shall I do to solve this problem?
Thank you.

You have a bug in your code, which you will have to find and fix. You
already have some information about it - it hasn't manifested itself so far
in debug build, and whether it occurs in release build or not depends on how
the optimiser moves your code around - which gives you some clues as to what
sort of bug it might be.

An uninitialised variable could do this ... but so could dozens of other
things.

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk


.


Quantcast