Hi, I have a piece of compiled code in which I fit a parabola to a histogram. This fit is done once for every pseudoexperiment and everything works fine. However, once my compiled code has finished if I try to fit a histogram from the ROOT prompt I get a segmentation violation. This only happens when I run my code for more than one pseudoexperiment. Here it is the code: TH1F *h1 = new TH1F("h1", "Likelihood", 1900, 120.0, 230.0); for (int j = 0; j < pseudo; j++) { ... TF1 *parabola = new TF1("parabola", "pol2", low_limit, high_limit); h1->Fit("parabola", "Q0R"); ... delete parabola; } Thank you for your help. Carlos
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:52 MET