So, I need some help. I am working on a project in C++. However, I think I have somehow managed to corrupt my heap. This is based on the fact that I added an std::stri
Oh, if you want to know how to debug the problem, that's simple. First, get a dead chicken. Then, start shaking it.
Seriously, I haven't found a consistent way to track these kinds of bugs down. Because there's so many potential problems, there's not a simple checklist to go through. However, I would recommend the following:
exampleString = hello; line.exampleString = hello; line, and not when exiting some enclosing block (which could cause destructors to fire).There are lots of other things to try, too. I'm sure some other people will chime in with ideas as well.