Cascade detectMultiScale shows error while running

The exception is thrown internally inside CvPlot::show(title, axes). I think the code in the library simply ignores the exception so that is why I cannot capture it. Visual Studio shows us in the debug mode.