Hi all,
i do not understand why this code is throwing a problem of
jgomez2@jg-mini-linux:~/Desktop$ root EPFinalKolja.C
root [0]
Processing EPFinalKolja.C…
EPFinalKolja.C:473:
*** Error in `/usr/bin/root.exe’: free(): invalid next size (fast): 0x08dc4498 ***
On my machine but is working on my friends. I did not want to post the whole stack on here but i can if it will help.
sprintf(res9name,"2OHFPMINUSTrack_Res_%ito%i",i,i+1);
sprintf(res9title,"SO resolution HFPMINUSTRACK %i-%i %%",centlo[i],centhi[i]);
SecondHFPMinusTrack[i]= new TProfile(res9name,res9title,1,0,1);
These are the lines that are messing up, I used to have %1.0f and changed that to %i just in case it was because i was running out of memory or something.
thanks to all for taking the time,
J
EPFinalKolja.C (31.1 KB)