Best guess; upgrade the compiler if the compiler was the one packaged with Code::Blocks 8.02.
If not, please state compiler version.
The command gcc -v
Gives the last one of this below. Many lines in front of this line.
gcc version 3.4.5 (mingw-vista special r3)
Note: (mingw-vista special r
2) did NOT work well under Vista.
Edit: The normal answer for your question "work in debug; not in release" is that the code is likely wrong.
Normally, the cause is failure to initial a variable; but, with large code project the cause can be many things. But, running the old MinGW GCC under Vista has given different results for different users/computers; so, I said that first.
Tim S.