Hello,
I want to store a std::vector of TMatrixD* objects as member variables of a class.
So far so good, this works.
But I run into a strange thing, when I access the TMatrixD* in the vector from another method (of the same class), then I get a seg fault.
This does not happen with other objects, such as histograms in a vector for example. It also works for vectors of TVectorD*.
Please check out the miminal example that’s attached:
test_tmatrix.C (792 Bytes)
The code loads a matrix from this root file:
matrix.root (1.3 KB)
I’m using 6.06 on lxplus. The same happens with root 6.10.
Any idea, what I’m doing wrong?
Thanks!
Jana