in reply to Suspending Disbelief While Debugging

Neither the google cache nor the original link work for me, but I think this will work.

This reminds me of the time I was debugging someone else's C++ code, which returned a const char * from a conversion operator.

The value was "magically" changing 2 calls later.

It turned out the pointer being returned was to a buffer on the stack with enough other locals in front of it that the first call wasn't overwriting it...
--
Mike

  • Comment on Re: Suspending Disbelief While Debugging