Hi ROOTers,
I’m running ROOT 5.18 on WinXP. For some reason, this short macro:
int tdcFit2()
{
TFile* file = new TFile("dummy.root","RECREATE");
TH1F h_bla("hist","hist_title",10,0,10);
file->Close();
return 0;
}
produced this:
root [4] .x tdcFit2.C
Error: C++ exception caught D:\tdcFit2.C(10)
(int)0
This causes some problems with a much bigger macro I’ve written. Any idea why this happens?
Cheers,
Nir