Hello
I've got an "Access Violation ... reading 0xffffffff" when I used Mat::zeros or Mat::ones with OpenCV 2.4.3/5/6 x64 under VC10 on Windows 7 x64 (from the pre-compiled binaries pack).
A program containing this:
int main()
{
cv::Mat A = cv::Mat::ones(307200, 1, CV_8UC1);
return 0;
}
caused this access violation. Replacing with:
cv::Mat A(307200, 1, CV_8UC1);
A.setTo( cv::Scalar(0) );
works.
Building it with the x86 versions, of course, worked as well. I made sure that I am linking to the right versions and using the right binaries.
Any ideas? Thanks