cv::Mat make VS 2017 Freeze when hovered
hey, I'm new to OpenCV, and i encountered with weird bug... somehow, when I hover the mouse to cv::Mat, my visual studio just go freeze. the only way I can fix it is either closed the program, is there any fix regarding this issue?
let me elaborate the problems more,
using namespace std;
using namespace cv;
int main()
{
std::vector<uchar> array;
enter code here
Mat getImage = imread("image.jpg", CV_LOAD_IMAGE_GRAYSCALE);
if (!getImage.data)
{
cout << "Could not open or find the image" << std::endl;
}
else
{
//imshow("Open an Image", getImage);
if (getImage.isContinuous()) {
array.assign(getImage.datastart, getImage.dataend);
}
else {
for (int i = 0; i < getImage.rows; ++i) {
array.insert(array.end(), getImage.ptr<uchar>(i), getImage.ptr<uchar>(i) + getImage.cols);
}
}
}
cvWaitKey(0);
destroyAllWindows();
the problem occur when I hover my mouse to "Mat" from "Mat getImage"
i'm using visual studio 2017
It is not an opencv bug but a problem with your install : check https://www.google.com/search?q=vs201.... I use VS2017 (communauty or enterprise) and there is no problem
@LBerger thanks for responding my question, but so far i didn't have this problem until I installed OpenCV, I work on .net on same VS2017 before, and it's work fine. Is there any way other than reinstalling VS2017?
How did you install opencv? If you use git clone try to disable git inside VS2017
@LBerger by downloading from https://opencv.org/releases.html, then adding the instalation path to windows environtment, and add include folder, linker, and so on. I can run the code just fine, and the opencv show fine, but only when i hover to Mat the VS is Hang.
I search it online, kinda like this problem https://developercommunity.visualstud... and https://stackoverflow.com/questions/5... thanks
Have you try Andrew T answer?
@LBerger yep i tried, it's work, but the downside i can't see the tool tip anymore >.< just want to share if it's was a bug here or on the VS2017 side. (i just found about the 1st link after posting it here though)
try to wait 5 minutes database need to be update