通过配置VS2015,解决release模式下问题:
1.工程项目上右键找到属性proterties(或菜单栏——>调试Debug——>属性 proterties)。
2.C++ ——> 常规General ——> 调试信息格式Debug Information Format 选 程序数据库 Program Database(/Zi)
3.C++ ——> 优化Optimization——>优化Optimization 选 已禁用Disabled(/Od)
4.链接Linker ——> 调试Debugging ——> 生成调试信息Generate Debug Info ——> 优化以便于调试Optimize for debugging (/DEBUG) ——> 应用