Windows has triggered a breakpoint - OpenCV

asked 2014-08-22 06:19:22 -0500

norzanbzura gravatar image

updated 2014-08-22 07:03:29 -0500

berak gravatar image

I don't know how to settle his problem. There's no error with the code.

le t

edit retag flag offensive close merge delete


dear, your screenshot isn't helpful at all (you even put the msgbox over the offending piece of code)

please, instead, paste your code here, and the text from output panel.

also, take a look at the faq please.

berak gravatar imageberak ( 2014-08-22 07:02:03 -0500 )edit

There's no error with the code, but when I debug it, this problem occur.

Windows has triggered a breakpoint in myNewOpenCV.exe.

This may be due to a corruption of the heap, which indicates a bug in myNewOpenCV.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while myNewOpenCV.exe has focus.

The output window may have more diagnostic information.

norzanbzura gravatar imagenorzanbzura ( 2014-08-22 11:34:55 -0500 )edit

hi all, i am also facing same issue, but i got in different place which is "VideoCapture camera(0);"
AND one more think if i am clean my project in multiple time then it was running at one time then next time onwards i was getting same issue. anyone please help me on that issue.

// Create cascade classifier cascade_classifier = new cv::CascadeClassifier(CASCADE_FILE); if (cascade_classifier->empty()) { std::cout << "Error creating cascade classifier. Make sure the file \n" "\t" << CASCADE_FILE << "\n" "is in working directory.\n"; exit(1); }

VideoCapture camera(0);
if (!camera.isOpened())
    cout << "Error getting camera...\n" << endl;;
sriramganesh gravatar imagesriramganesh ( 2017-11-18 03:14:32 -0500 )edit

@sriramganesh please do not post an answer here, if you have a question or comment. thank you.

berak gravatar imageberak ( 2017-11-18 04:07:11 -0500 )edit