User forums > Using Code::Blocks

Win32 Debug/Release

(1/2) > >>

sevendogzero:
Win32 app
Works as intended on Debug Target
Release target not processing events, no createwindow functions working etc.

Is this a Release target config setting?
Or maybe my code is bad
Thanks

oBFusCATed:
What?
You're telling us that enabling optimizations breaks your app.
If this is the case go fix your program.
You probably have an UB (undefined behaviour) somewhere.

stahta01:
I have never had issues with -O2 or below where the problem was not in my own code; but, I have had problems with -O3 where the problem was in a third party library I was using instead of in my own code.

Tim S.

sevendogzero:
Will do. Happy New year.
I have CB running on Win7 pc as well I may need to compare release settings. I tinker too much. User error no doubt.

sevendogzero:
Read and re-read my project code..tightened up everything, every warning..still did not execute messages in WndProc while a Release target.

Solution:
1. Deleted all files in Bin\Release
2. Delete both manifest files (one in the root of my project, one in the Bin/Release folder)

It works now. Maybe this will make sense to someone. Just happy to go to the next step.

Navigation

[0] Message Index

[#] Next page

Go to full version