发布版本挂起/崩溃,而不管code的 [英] Release builds hang/crash, regardless of code

查看:418
本文介绍了发布版本挂起/崩溃,而不管code的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因,我刚开始和我的版本的问题的基础之上。

For some reason I just started having an issue with my release builds.

我能没有问题,从调试运行任何我的项目的构建,我也可以运行,只要我一个调试器附加我的发布版本,但是当我尝试运行版本建立自己的,他们要么挂无限(用户界面崩溃,但我无法停止使用任务管理器的过程中),或者加载极为缓慢(我只有过他们最终加载了两次,这是一个单独的机器上,从我的主要PC)

I'm able to run any of my projects without issue from the debug builds, I can also run my release builds as long as I attach a debugger, but when I try to run the release builds on their own they either hang infinitely (The UI crashes, but I'm unable to stop the process with task manager), or they load up EXTREMELY slowly (I've only ever had them eventually load twice, and that was on a separate machine from my main PC).

我知道我没有任何病毒或任何其他系统的问题(我需要很好的照顾让我的系统非常干净的),我已经尝试运行与AV程序禁用。

I know I don't have any viruses or any other system issues (I take very good care of keeping my system extremely clean), and I've tried running the programs with AV disabled.

我没有做似乎有所作为,而调试版本的我的项目进行准确预期的事实使我莫名其妙地相信我已经改变了关于VS它是如何构建的版本或类似的设置。

Nothing I do seems to make a difference, and the fact that debug builds of my projects perform exactly as expected leads me to believe somehow I've altered a setting in VS regarding how it builds releases or something similar.

这会是这样呢?如果是这样,我应该如何去修复它?

Could this be the case? If so, how should I go about fixing it?

如果您需要任何更多信息,请让我知道。

If you need any more information please let me know.

编辑:别的东西,我只注意到这个问题,我能够运行任何我已经构建了可执行文件的唯一情况是,如果他们是在斌\\调试\\ 我的项目文件夹中。这包括复制我的项目的释放打造成了debug文件夹。然后,它运行得很好。我也尝试建立一个安装程序为我的项目,它也将我的系统上,而在debug文件夹只运行,并在其他地方。似乎并不无论它是一个释放或调试版本,只要它是一个文件夹中。

Something else I've just noticed about this issue is, the only time I'm able to run any of the executables I've built is if they are in the bin\debug\ folder of my project. That includes copying the "release" build of my project into the debug folder. It then runs just fine. I've also tried building an installer for my project, and it also will only run while in the debug folder, and nowhere else on my system. Doesn't seem to matter whether it's a release or debug build, as long as it's in that folder.

推荐答案

我落得这样做的Visual Studio 2015年社区的完整卸载和所有的运行时在/ etc。分别安装在同一日期为VS如此,并重新安装该程序。

I ended up doing a complete uninstall of Visual Studio Community 2015 and all of the runtimes/etc. that were installed on the same date as VS, and reinstalled the program.

然后我删除了所有的调试/发布构建我的项目,清理解决方案,并重建了他们。

I then deleted all of the debug/release builds for my project, cleaned the solution and rebuilt them.

到目前为止,一切似乎是现在的好工作。

So far everything seems to be working okay now.

我不知道是什么的问题是,而是一个新的安装似乎解决它。

I'm not sure what the issue was, but a fresh install seemed to fix it.

这篇关于发布版本挂起/崩溃,而不管code的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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