Bad pointer issue in c++
Hi All,
I had a problem. Basically, was little strange. I have a feeling it might be a bug in OpenCV. But not sure. The below code works only in debug mode but not in release mode (VS 2010 express edition). The problem is string variable path shows bad pointer and doesn’t assign the value as given below to it. I am using OpenCv 2.4.0.
cv::Mat testMatrix(3,3,CV_64F);
std::string path = ".\\input";
std::cout<<path ;
If I remove the first line it works fine. And this problem occurs only in release mode not in debug mode. Do you have any suggestions ?