User forums > General (but related to Code::Blocks)
why is the result different in debug and release mode?
Jenna:
Due to optimization you might have different memory boundaries in debug and release code also some functions might be inlined with, but not without optimization.
And there are many other possible other sources of trouble.
This might be the cause for your errors.
You have to be sure that your code works stable on any system, with any byte-order and on 32 and 64-bit.
You can try to add some debug-statements (cout's or printf's) to find the place where something goes wrong.
Navigation
[0] Message Index
[*] Previous page
Go to full version