Looks like other variables higher in memory than yours are also getting changed. Maybe the stack has grown far enough downwards to overwrite your static variables. Try increasing the stack size. It is defines in one of the propertie dialog boxes. Or might be in the linker command file.
↧