Hi John,
Obviously this trivial test works with the standard ROOT executable.
Is the TFile constructor reporting an error message ?
Which version of ROOT are you using?
Rene Brun
On Sat, 12 Jan 2002 jcfree@socrates.Berkeley.EDU wrote:
>
> 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