User forums > Using Code::Blocks

Will not run in Release Mode (testing)?

(1/2) > >>

dominover:
Is there any way using CodeBlocks to test why a project will not run in Release mode.
I can run the project in Debug Mode fine.  When running in Release mode, the project works but no console appears. When running in Debug mode the console appears and it runs as it should.  The Test_Project is only a few lines long so there is no issue with the code.  I've tested several.  I know it's not necessarily a codeblocks issue but I'm wondering if you can test it using the CodeBlocks IDE to find out why this is occuring?  Below comes from the 'Build Message' tab below the code editor when I run the code.  The Debug and Release mode provide the same message but the Release mode console doesn't appear.



--- Code: ---Run: Debug in Test_Project (compiler: GNU GCC Compiler) ===|
Run: Release in Test_Project (compiler: GNU GCC Compiler) ===|
--- End code ---

stahta01:
Try reading/posting the "Build Log".

Tim S.

gd_on:
Or, may be your program ends too early, before you can see something. As shown in http://wiki.codeblocks.org/index.php?title=Creating_a_new_project#Modifying_build_options, did you check "Pause when execution ends" in the project properties? or add a getchar() just before the end of your program...

gd_on

dominover:
Well, it builds fine and if I place a system("pause") in there it will stop with a blank screen.
It's when I run the program the problem surfaces.  Not in Debug mode though.  Very strange.

It started when I upgraded my compiler to the latest CodeBlocks 13.12 with Mingw 4.81. 

oBFusCATed:
Project -> Properties -> Build targets -> Pause when execution ends?

Navigation

[0] Message Index

[#] Next page

Go to full version