I have a program running. It was compiled with optimization and no debugger help at all. After running for quite long, it crashed with an Excess Violation and giving a hex address.
Is there a way to find where it crashed? I am thinking to recompile again with debug and find the code then.
1. Would the address be the same, or because of the debug information added, it will have different (shifted) addresses, i.e. useless.
2. Even if it is shifted, I can try to compile with debug, run it again and "hope" that once it will crash at the same place. If that happens, how can I find the source line, based on the address?
3. Is there a better way?