User forums > General (but related to Code::Blocks)

why is the result different in debug and release mode?

(1/5) > >>

facat:
recently i was faced up with a strange problem. When I built my project in debug mode, the result was totally wrong. When in release mode, the the result was perfectly right.
I was confused why the result was different in debug mode and release mode ? Did i invoke any bug in gcc?
I was using Code Block 10.5.
My project is in the attachment. There are some western characters in my files. They are my notes, so just ignore them.

oBFusCATed:
It is pretty normal, most of the time there is a bug in you program... use the debugger to find it...

facat:

--- Quote from: oBFusCATed on April 15, 2011, 08:47:37 pm ---It is pretty normal, most of the time there is a bug in you program... use the debugger to find it...

--- End quote ---
i've searched for some information on the internet. according to other's experience, always the result from debug is right, that from release is not right. here, my debug result is wrong, the release result is right. so i think it's strange.



stahta01:
Do NOT try to add MSVC Libraries to your MinGW Debug Build.

facat:

--- Quote from: stahta01 on April 16, 2011, 02:25:29 am ---Do NOT try to add MSVC Libraries to your MinGW Debug Build.


--- End quote ---

i didn't use MSVC lib. by the way, my program is normal either in debug or release within VS2005.


Navigation

[0] Message Index

[#] Next page

Go to full version