Str-Duped

Several years ago Headspin was doing a demo at E3. The demo was running really well and lots of people liked it, but a few minutes into it it would hang. Poof.
We tried several fixes installing them on the show floor as they came in. Finally the bug turned out to be that someone had used strdup() to copy a string and then used the c++ delete on it.
Since then I have probably told this story and admonished programmers who worked for me to not use strdup about a dozen times.
Today I spent 2 hours finding a crash bug in a photoshop plugin i am working on. Turns out I had str-duped myself. Hi Ho.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *