I am using OpenCV 2.4.9 and Visual C++ 2017. I am writing video and for testing purposes tried to write a frame on a full disk.
I did
try {
video_writer << frame;
} catch (cv::Exception& ex) {
// Handle exception
} catch (std::exception &e){
// Handle exception
} catch (const std::runtime_error& error) {
// Handle runtime error
}
on a full disk and hoped to be able to catch an exception. However I get a runtime error by the Microsoft Visual C++ Runtime Library
stating "This application has requested the runtime to terminate it in an unusual way."
How would I catch this?