Break segmentation violation

Hello, after reading a file which contains a list of files of type txt, I have to graph the data.
The problem is that the code runs until I use TTreeReader: the terminal says:
*** Break *** segmentation violation
Segmentation fault.
Unfortunately, I can’t upload the files because the are too many, but the first part of the program works.
How can I solve this problem?
Thank you very much.

graph_file_list.cpp (7.8 KB)

On which line does it crash ?

At line 79. Where there’s “TGraphErrors” etc

You mean 74 ? here:

      TGraphErrors *g = new TGraphErrors(Npts, B, i_DF, eB, ei_DF);


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.