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.
No guesses on why your load
line would cause an access violation only for release build. So, the next step is to instrument your OpenCV release binaries with logging, or printfs, or whatever works for you. This type of debugging works in this scenario since you have the source for OpenCV and the ability to recompile with VS2010.