|
-
November 21st, 2015, 06:06 AM
#2
Re: App(mfc) failing in Release build due to compiler optimization but works in debug
DO NOT TRUST in what you see when step into a RELEASE build!
Because of code optimization, wrong values may be shown.
If you want to trace code also in RELEASE, use a logging system (e.g. write values in a log file) or call OutputDebugString function then look into Output window.
Anyway, turning off the compiler optimization in RELEASE is NOT a good solution.
One additional note: if use OutputDebugString, you can also trace the values in Sysinternals DebugView utility without being necessary to run your application from Visual Studio IDE.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|