Hi all
I was developing a Qt program and it works well under Linux. While I turn into windows, a strange problem appears: both ‘TTreereader method’ and ‘SetBranchAddress method’ don’t work. ‘TTreeReader’ can’t ‘Next()’, its ‘GetCurrentEntry()’ always return -1. ‘SetBranchAddress’ can read some data while they misaligned i.e. some data are missed and some ‘non data’ are read…
ROOT Version:preview Windows Visual Studio 2017
_Platform:windows
_Compiler:MSVC2015 32bit
EDIT: Make sure to build with the same configuration (debug/release) than the one used to build ROOT, otherwise it will not work properly. This is most probably the origin of your problem!
The compiler produces code which is different in debug and release mode (debug contains debug - and possibly more - information), and they are not compatible. This is very specific to Microsoft (I think)…