c++ - Explicitly initialize DWORD to 1, but debugger shows wildly out of range value -


I am a little surprised with this issue - this issue has not come at all in debug mode, but it continues. Feels that there is almost nothing that I can do to fix it.

Here's a screenshot of what's happening inside VS 2013:

Enter image details here

I initialize nResult for 1 code, and the internal value is shown as 3422785012. In debug mode, this value is actually 1L.

Why does the value displayed in the form of any idea is not close to the initial value which I have set for nResult ? I have tried to play with compiler settings - this code runs fine in debug mode.

Your code is more likely to be from customized that means the compiler has the code In a manner that does not match your source code, which is not generated by the compiler.

Optimized code with either debug unoptized code or full debug, which will not match source actual instructions.

If you want to debug the release build but want to see the correct values ​​in the debugger, go to the property of your property in the studio, go to the C / C ++ section, and disable optimization. Rebuilding


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -