pghsteelers
Technical User
In learning C++ I am at a point of getting to know the debugger in VC 6 (I am switching to 2005 at the end of this project) - anyhow, I posted the below code, that if you compile (0 errors) but try to run, it crashes, giving you an opportunity to run the debugger.
Upon entering you'll receive and error:
"Unhandled exception in Name.exe 0xC0000005: Access Violation."
Now, I know that the memory location is specific to my PC. THe debugger takes you to the violation which in debugger is the line reading:
main_loop:
004096A1 mov dword ptr [edi],edx
My training tool I am using, is telling me that the reason is because of "the exception referring to a memory location way outside the realm of the program, so a rogue pointer in our program is the immediate suspect".
My problem and question is that it doesn't tell me "how" it found the listed lines above to indicated that? So, can anyone help me break this down or give some directing information to help me see how:
main_loop:
004096A1 mov dword ptr [edi],edx
is telling me that I have a reference to a memory location way out of the scope of the program?
Thanks
Upon entering you'll receive and error:
"Unhandled exception in Name.exe 0xC0000005: Access Violation."
Now, I know that the memory location is specific to my PC. THe debugger takes you to the violation which in debugger is the line reading:
main_loop:
004096A1 mov dword ptr [edi],edx
My training tool I am using, is telling me that the reason is because of "the exception referring to a memory location way outside the realm of the program, so a rogue pointer in our program is the immediate suspect".
My problem and question is that it doesn't tell me "how" it found the listed lines above to indicated that? So, can anyone help me break this down or give some directing information to help me see how:
main_loop:
004096A1 mov dword ptr [edi],edx
is telling me that I have a reference to a memory location way out of the scope of the program?
Thanks