简体   繁体   中英

VS2013 freezes as I type OpenCV include header files

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:

#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?

The problem may point to several performance issues in VS2013, please try each one of the following separately until overcoming the issue:

  1. Disabling Synchronized Settings: Go to Tools -> Options -> Environment-> Synchronized Settings and remove this option by unchecking the checkbox.
  2. Set Current source control plug-in to None: Tools > Options > Source Control
  3. 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.

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.

  1. Try deleting the solution's .suo file (it's next to the .sln file), closing and re-opening Visual Studio

环境->常规

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM