切换到发布模式时,我的程序停止工作 [英] My program stops working when switching to release mode

查看:51
本文介绍了切换到发布模式时,我的程序停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将项目的发布模式更改为Release时,某段代码停止工作。当使用下面使用的代码并将编译模式设置为Release时,我的程序只是简单崩溃。虽然,在调试模式下使用此代码时,我的程序运行完美
罚款。我喜欢与他人分享我的节目,但我因此受到限制。我觉得这是一个Visual Studio问题,所以我决定在这里发帖。如何在发布模式下完成此工作?一旦运行以下函数
中的第一行,它就会崩溃。

When changing my project's release mode to Release, a certain piece of code stops working. When using the code used below with the compile mode set to Release, my program just plain crashes. Though, when using this code in Debug mode, my program runs perfectly fine. Id like to share my program with others, but I am limited because of this. I feel that this is a Visual Studio problem, so I decided to post here. How can I make this work in Release mode? It crashes as soon as the first line in the following function is ran.

推荐答案

                                            

您好Jonathon21,

                                           

Hi Jonathon21,

感谢您在MSDN论坛上发帖。

此论坛正在讨论Visual Studio设置和安装,因为您的问题与C ++有关,我帮助您将此案例移至
Visual Studio语言  >  < a href ="https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vcgeneral"id ="x_x_forumBreadcrumb_vcgeneral"> Visual C ++
论坛获得更多专业支持。

感谢您的理解。

最好的问候,

Thank you for posting in MSDN forum.
This forum is discussing about the Visual Studio setup and installation, as your issue is related to C++, I help you move this case to Visual Studio Languages > Visual C++ forum for more professional support.
Thank you for your understanding.
Best Regards,


这篇关于切换到发布模式时,我的程序停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆