[ROOT] Writing Histos to a File

From: jcfree@socrates.Berkeley.EDU
Date: Sun Jan 13 2002 - 04:00:48 MET


I've been having a lot of trouble writing histograms to a file in my
program. I'm using VC++ 6 on Windows 2000, and am using the QT libraries
for my GUI interface. Even the simplest code doesn't seem to work, e.g.,

TFile* file = new TFile("e:\\rt\\testfile.root","UPDATE");
TH1S* testhisto = new TH1S("histo","histo",100,0,100);
testhisto->Write();
file->Close();

will cause the program to indicate "Abnormal program termination" when
execution reaches the "testhisto->Write()" line. Can anyone help me out?

				Thanks,

					John



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:38 MET