I have a problem with VS2013. I'm trying to write a program in vc++ using opencv and in vs2013 update 4 IDE. the problem is as I just type these lines, my computer freezes. infact the hard activity runs to 100 percent and never stops untill restart. even when I (hardly) close VS and even when I logged off, hard disk activity is still at maximum. the code is:
我有VS2013的问题。我正在尝试使用opencv和vs2013 update 4 IDE在vc ++中编写程序。问题是因为我只是键入这些行,我的计算机冻结了。事实上,硬活动运行到100%并且永远不会停止直到重新启动。即使我(几乎)关闭VS,即使我退出,硬盘活动仍然是最大的。代码是:
#include <iostream>
#include <stdio.h>
#include "opencv2/core/core.hpp"
#include "opencv2/features2d/features2d.hpp"
It seems that the last line makes the problem. FYI I have tried and run lots of OpenCV examples in VS2013. And when I tried the code above on VS2012 on another computer it works well, but on VS2013 on another computer it again freezes just like my computer. So what's wrong here?
似乎最后一行出现了问题。仅供参考我在VS2013中尝试并运行了许多OpenCV示例。当我在VS2012上尝试上面的代码在另一台计算机上运行良好,但在VS2013的另一台计算机上,它再次像我的计算机一样冻结。那么这里有什么问题?
1 个解决方案
#1
0
The problem may point to several performance issues in VS2013, please try each one of the following separately until overcoming the issue:
问题可能指向VS2013中的几个性能问题,请分别尝试以下各项,直到克服问题:
- Disabling Synchronized Settings: Go to Tools -> Options -> Environment-> Synchronized Settings and remove this option by unchecking the checkbox.
- Set Current source control plug-in to None: Tools > Options > Source Control
- Clear the "Use hardware graphics acceleration if available" check box to prevent the use of hardware graphics acceleration : Tools -> Options -> Environment-> General , make sure "Automatically adjust visual experience based on client performance" is cleared too.
禁用同步设置:转到工具 - >选项 - >环境 - >同步设置,然后取消选中该复选框以删除此选项。
将Current source control插件设置为None:Tools> Options> Source Control
清除“使用硬件图形加速(如果可用)”复选框以防止使用硬件图形加速:工具 - >选项 - >环境 - >常规,确保“自动调整基于客户端性能的视觉体验”也被清除。
Note: You can select or clear the "Enable rich client visual experience" check box to make sure that rich visuals are always on or off, respectively. When this check box is selected, rich visuals are used independent of the computer environment. For example, rich visuals are used when you run Visual Studio locally on a rich client and over remote desktop. it may help too.
注意:您可以选中或清除“启用富客户端视觉体验”复选框,以确保分别始终打开或关闭丰富的视觉效果。选中此复选框后,将使用独立于计算机环境的丰富视觉效果。例如,在富客户端和远程桌面上本地运行Visual Studio时,将使用丰富的可视化对象。它也可能有所帮助。
- Try deleting the solution's .suo file (it's next to the .sln file), closing and re-opening Visual Studio
尝试删除解决方案的.suo文件(它位于.sln文件旁边),关闭并重新打开Visual Studio
#1
0
The problem may point to several performance issues in VS2013, please try each one of the following separately until overcoming the issue:
问题可能指向VS2013中的几个性能问题,请分别尝试以下各项,直到克服问题:
- Disabling Synchronized Settings: Go to Tools -> Options -> Environment-> Synchronized Settings and remove this option by unchecking the checkbox.
- Set Current source control plug-in to None: Tools > Options > Source Control
- Clear the "Use hardware graphics acceleration if available" check box to prevent the use of hardware graphics acceleration : Tools -> Options -> Environment-> General , make sure "Automatically adjust visual experience based on client performance" is cleared too.
禁用同步设置:转到工具 - >选项 - >环境 - >同步设置,然后取消选中该复选框以删除此选项。
将Current source control插件设置为None:Tools> Options> Source Control
清除“使用硬件图形加速(如果可用)”复选框以防止使用硬件图形加速:工具 - >选项 - >环境 - >常规,确保“自动调整基于客户端性能的视觉体验”也被清除。
Note: You can select or clear the "Enable rich client visual experience" check box to make sure that rich visuals are always on or off, respectively. When this check box is selected, rich visuals are used independent of the computer environment. For example, rich visuals are used when you run Visual Studio locally on a rich client and over remote desktop. it may help too.
注意:您可以选中或清除“启用富客户端视觉体验”复选框,以确保分别始终打开或关闭丰富的视觉效果。选中此复选框后,将使用独立于计算机环境的丰富视觉效果。例如,在富客户端和远程桌面上本地运行Visual Studio时,将使用丰富的可视化对象。它也可能有所帮助。
- Try deleting the solution's .suo file (it's next to the .sln file), closing and re-opening Visual Studio
尝试删除解决方案的.suo文件(它位于.sln文件旁边),关闭并重新打开Visual Studio