i am currently writing my first C++ program and so far, even if it's not complete, i wanted to try some test runs, after dealing with all compiler errors. I'll provide most of the code in the following links: http://pastie.org/8196032 http://pastie.org/8196025 Since i'm just allowed to post 2 links the header for ImageComparison is missing, which is not very important i think. stdafx.h includes required opencv and std libs. I ran gdb and got this result:
Program received signal SIGSEGV, Segmentation fault.
0x000000000040655c in cv::Mat::release() ()
(gdb) bt
>#0 0x000000000040655c in cv::Mat::release() ()
>#1 0x0000000000406410 in cv::Mat::operator=(cv::Mat const&) ()
>#2 0x00000000004052ed in ImageComparison::LoadImages() ()
>#3 0x000000000040518e in ImageComparison::DoImCo() ()
#4 0x0000000000405019 in main ()
Which doesn't give me any clue what's wrong here. I apologize if my question is just to dump, but i appreciate any suggestions.
char* buffer; ItoS( i, buffer );and alsoimages[i-1]when images has no elements. Any of these is 99.9% likely to be the culprit. This ic c++, use std::string.