1 | initial version |
Mystery resolved: opencv throws and catches an exception internally. Enabling the flag <all c++="" exceptions="" not="" in="" this="" list=""> (in "C++ Exceptions" in Visual Studio 2019) makes VS catch it even though it's within try-catch block. I don't know if it's by design, but changing that flag (it is disabled by default) seems to be cause and the solution of the problem.
2 | No.2 Revision |
Mystery resolved: opencv throws and catches an exception internally. Enabling the flag <all c++="" exceptions="" not="" in="" this="" list=""><All C++ Exceptions not in this list>
(in "C++ Exceptions" in Visual Studio 2019) makes VS catch it even though it's within try-catch block. I don't know if it's by design, but changing that flag (it is disabled by default) seems to be cause and the solution of the problem.