Re: getting bad values from calls to GetThreadCallStack()

Tech-Archive recommends: Speed Up your PC by fixing your registry



CallSnapshot.dwReturnAddr holds the return address not the entry
address of the caller function.

For example:
int foo()
{
...
foo2(); //the return address of foo2() points to the next
instruction: "i++", not the entry address of foo()
i++;
...
}
.



Relevant Pages