Hi all,
I install ROOT 4/02 on Mandriva LE 2005.
I have a ROOT macro that creates from a vector in a txt file a TH1D histogram.
When i do in ROOT:
[root1]: .L histo2.cc => OK
then i run my macro with
[root2]:h=setBinContent(“x2.data”,30);
Here it crashes with a glibc detected free() invalid pointer
The lines that causes this crash are the following:
std::vector x(nValues);
std::vector y(nValues);
I try to find what’s wrong but i have systematically the same crashes.
In attachment you will find the macro i use.
Does anybody know what’s the problem with std::vector in ROOT ?
Cheers, david.