Hi Guillaume,
thanks for your comments regarding my issue. I continued working on it and want to share my progress:
1) Calling caffe::GlobalInit did not change anything, seems like it is not required.
2) I've been thinking about whether this could be an encoding error. I changed the encoding of my project to unicode as in the caffe examples. No change.
3) I run the above code from console and passed the path to the model file as an argument, to better simulate the behaviour of classification.exe. Still the same error.
std::string model_file = argv[1];
std::shared_ptr<caffe::Net<float>> net_;
net_.reset(new caffe::Net<float>(model_file, caffe::TEST));
4) Stepping through the caffe code as you suggested is what I want to do next. Since I built caffe with Ninja instead of Visual Studio and therefore don't get any Visual Studio files, I don't quite know how to do this. Could you give me a hint?
Today I tried out the new build script, here I would end up with Visual Studio files to debug further, right? Unfortunately, I was not able to build caffe successfully this way, see
https://groups.google.com/forum/#!topic/caffe-users/gEqEdN5Vc8E.
If debugging does not help, I can try to upload the project to make the error reproducable for you.