Hey,
I am developing GUI program in CodeBlocks using mingw compiler with wxWidgets library. I had troubles running standalone .exe file to run application, becuase it crashed when I exited it (just in Release version, and not in Codeblocks IDE or debug version). I seemed to fix it by unchecking "Optimize even more (for speed) [-O2]" flag, under build options->compiler settings->compiler flags->optimization.
Is this something that is known and if yes, can I get some additional info on this? Any help on why this might be the problem?