Fixing Release Build Problems
If your code generates compile errors after switching from debug build to release build, there are some areas you should check.
You may receive compiler warnings during an optimized (release) build that you did not receive during a debug build.
See Also
Reference
Release Builds
Common Problems When Creating a Release Build
Optimizing Your Code