I am trying to load in a training xml file with CascadeClassifier::load()
, and it works just fine in Debug mode, but in Release mode I get a runtime error.
This is quite strange. Check your options for debug and release version, be sure that you are using the correct version of the libraries.
I tried running the code on a project of mine, and works fine both in debug and release version, with opencv 2.3.1
Try adding these lines of code to another project, with release version working and where you already use opencv. If it works, then the problem is in the configuration settings.