Ask Your Question

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

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

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

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

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 {
} 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

Question Tools

1 follower


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

Seen: 3,513 times

Last updated: Mar 23 '17