The result is, that everywhere in the code before CmdContent=0, I get the same branch address printed. After the CmdContent=0, the branch adress value printed is empty. The &CmdContent remains the same.
This is a root 5.34.36 issue, for which I know the support is dead, but still hope that maybe someone can point an obvious mistake…
I’m not using root 5 any more but my best guess is that the problem is elsewhere in your code. Whenever a problem is as strange as yours and when a “new” fixes your problem, you probably have some undefined behavior in your code. Maybe you are writing to some place in memory where you shouldn’t, or have something like a double delete in your code.
Can you could provide a minimal but complete example of the problem, i.e. code that one can simply run in root to reproduce the problem? Often one can find bugs by trying to reduce the code
“cmd_content/i” explicitly denotes “a 32 bit unsigned integer (UInt_t)”, and so “&CmdContent” will be assumed a pointer to an ordinary UInt_t variable.