Sitting here waiting for the heat to reach an above-cold level in the office. It took the landlord a week to turn it on after turning it off for some reason, and now of course it's gonna take the whole day for it to actually reach a tolerable level. Cheapskates!
On to other things, random crashes in string destructors (actually the deallocators) are interesting. Especially when you've seen it before, found the issue and discovered that it was really a non-issue and then suddenly it pops up again but with none of the causes( non-local static destruction) you found earlier. And off I am debugging.
Edit:
Found the error. Default copy & assignment were the villains. This talks about why that can create problems. This particular problem was shallow copying of members containing pointers. The members deallocated the memory upon destruction, thus wrecking havoc when the the other object was destroyed.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment