The Release mode enables optimizations and generates without any debug data, so it is fully optimized . . Lots of your code could be completely removed or rewritten in Release mode. The resulting executable will most likely not match up with your written code.