My code works in Debug mode, but not in Release mode.
Posted
by Nima
on Stack Overflow
See other posts from Stack Overflow
or by Nima
Published on 2010-05-27T18:02:52Z
Indexed on
2010/05/27
18:11 UTC
Read the original article
Hit count: 343
Hi,
I have a code in Visual Studio 2008 in C++ that works with files just by fopen and fclose. Everything works perfect in Debug mode. and I have tested with several datasets. But it doesn't work in release mode. It crashes all the time. I have turned off all the optimizations, also there is no dependency to anything(in the linker), and also I have set these:
Optimization: Disabled(/Od) Keep Unreferenced Data. Do Not Remove Redundant Optimize for Windows98: NO
I still keep wondering how it should not work under these circumstances. What else should I turn off to let it works as in debug mode?
I think if it works in release mode but not in debug mode, it might be a coding fault but the other way looks weird. isn't it?
I appreciate any help. --Nima
© Stack Overflow or respective owner