Hi Rene,
I have just found out that the reason we could not
write a histogram successfully was because
the VC++ 6.0 was installed without any of the
service packs. I just installed service pack 5.0
which I downloaded from the microsoft site.
Everything works in our Pixel_RootQT application
as expected.
Thanks for your help.
Aldo.
> > 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
--
***********************************************************
ATLAS Experiment - Pixel Group (Physics Division)
Lawrence Berkeley National Laboratory
Aldo F. Saavedra
Email: AFSaavedra@lbl.gov
Phone: 1 510 486 4690
Postal Address: Lawrence Berkeley National Laboratory
1 Cyclotron Rd Mailstop 50B-6208
Berkeley, CA 94720
USA
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:38 MET