I just debugged a heap corruption successfully
The problem was in the ofImage::setColor(x, y, color) method. I called it with an x and y out of bounds. This never gave a warning or a segmentation fault. Causing me to lose my mind for a few hours.
Maybe someone will run into a similar issue at some point. In Windows you can use GFlags and WinDbg, find them here. Really useful stuff, it allows to smell each allocated memory page to check for undesired writes.
For other platforms you can use Valgrind or others, just donβt give up on heap corruptions!