in reply to Suspending Disbelief While Debugging
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
|
|---|