1 | initial version |
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 :)