[问题] Debug Error R6010 -abort() has been ca

楼主: dedicationsh (ddd)   2015-08-05 12:01:49
大家好
我在用opencv时抓影像 再把影像显示出来
结果出现了下面的错误
他会直接跳一个视窗出来
Debug Error!
Program:
......XXX.exe
R6010
-abort() has been called
(Press Retry to debug the application)
为什么会这样呢@@?
我上google看也看不个所以然
补个code
#include <cv.h>
#include <highgui.h>
#include <stdio.h>
#include <windows.h>
#include<time.h>
using namespace cv;
using namespace std;
int main()
{
//CvCapture *capture0;
//CvCapture *capture1;
VideoCapture cap1(2);
VideoCapture cap2(1);
VideoCapture cap3(0);
//IplImage *frame0;
//IplImage *frame1;
Mat frame0;
Mat frame1;
Mat frame2;
//capture0 = cvCaptureFromCAM(0);
//capture1 = cvCaptureFromCAM(1);
//cvNamedWindow("Webcam0", 1);
//cvNamedWindow("Webcam1", 1);
while (true)
{
//frame0 = cvQueryFrame(capture0);
//frame1 = cvQueryFrame(capture1);
cap1 >> frame0;
cap2 >> frame1;
cap3 >> frame2;
imshow("Webcam0", frame0);
imshow("Webcam1", frame1);
imshow("Webcam2", frame2);
if (waitKey(10) == ' ')
{
break;
}
}
cout << frame0.size() << endl;
cout << frame1.size() << endl;
// cout << frame2.size() << endl;
//cvReleaseCapture(&capture0);
//cvDestroyWindow("Webcam0");
}
作者: Feis (永远睡不着 @@)   2015-08-05 12:09:00
有 code 吗?
作者: johnpage (johnpage)   2015-08-05 14:22:00
终止程序曾经被呼叫过简单来说就是发生错误,引发终止程序,然后你又要他做处理
作者: VSei (Chaos)   2015-08-06 11:42:00
Google search -> 4 camera simultaneously opencvit's might be all/part of answer, not prove it.

Links booklink

Contact Us: admin [ a t ] ucptt.com