Ask Your Question
0

Unhandled exception at Microsoft C++ exception: cv::Exception at memory location

asked 2016-08-24 06:45:12 -0500

krishprince gravatar image

I have created the custom build the OpenCV with a current repo of OpenCV and opencv_contri_module When there is an assign of MATRIX OR VECTOR, this unhandled exception with memory allocation is thrown. Why is this error thrown?

Please help, thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-23 06:32:43 -0500

elliotwoods gravatar image

this isn't necessarily an exception about memory allocation (in fact, most likely it isn't).

try wrapping your code like this

try {
    codeWhichCausesPain();
} catch(const std::exception & e) {
   cout << "Doesn't work : " << e.what();
}

also check your console. generally when an exception is thrown in opencv it gets written to the console also.

Then once you know what the exception is, and what code is causing it, then we can figure out what the reason is :)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-08-24 06:45:12 -0500

Seen: 1,667 times

Last updated: Mar 23 '17