Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Suspending Disbelief While Debugging

by RMGir (Prior)
on Dec 09, 2002 at 16:51 UTC ( [id://218585]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://218585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-24 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found