Error -Signal received: SIGSEGV (Segment fault)??

  • From: "louarnold" < >
  • To:
  • Subject: Error -Signal received: SIGSEGV (Segment fault)??
  • Date: Wed, 25 Jan 2012 17:49:49 +0000

Re: NetBeans 7.1, MINGW, MSYS, OpenCV2.3.1
I'm running on XP SP3. I installed the above and rebuilt OpenCV with CMake, 
set up PATH, the includes path, and the libraries.

When I run a small C++ program in debug mode I get the error message "Signal 
received: SIGSEGV (Segment fault) For Program myfirst_project, pid -1". Why 
is that?

Here is the code:

Code:

#include "opencv/cv.h"
#include "opencv/highgui.h"
using namespace std;
int main(int argc, char* argv[])
{
        cvNamedWindow("Demo", CV_WINDOW_AUTOSIZE);      //create and setup 
window called "Demo"
        CvCapture* capture=cvCaptureFromCAM(0); //setup camera capture process
        return 0;
}


The error message comes at the "CvCapture*..." lone.






Error -Signal received: SIGSEGV (Segment fault)??

louarnold 01/25/2012

Error -Signal received: SIGSEGV (Segment fault)??

louarnold 01/26/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close