If you had said "press F8" then the problem would be obvious: an uninitialised pointer in your code.
But having that problem with "F9" is kind of odd. It doesn't do much but execute the program after building it. So except for the program being in a different memory region, all is the same (dread to think of faulty RAM). You don't play any complicated relocation tricks, I trust?
It is surprising even more so as compiling debug/release shouldn't make any difference at all (the only difference is symbols being added, it is still the very same code).
Sometimes, an exotic compiler option can have nasty results, too. Can you post the build commandline (at least one complete compiler and one complete linker line)?
Though I doubt it will help, maybe one can see something wrong in there... :?