Hi Jano, This is a side-efefct of the change in the return type of TTree::GetReadEntry returning a Long64_t instead of Int_t. In your Form statement replace c1->SetTitle( Form("event: %6i, from file: %s", by c1->SetTitle( Form("event: %6lld, from file: %s", Rene Brun Jano Hruby wrote: > > Hello, > I have problem in CVS version of root (06 Oct 2004): > > > > TTree *tmp_tree = (TTree*)gDirectory->Get("my_tree"); > c1->SetTitle( Form("event: %6i, from file: %s", > tmp_tree->GetReadEntry(), tmp_tree->GetCurrentFile()->GetName()) ); > > > (for example: event = 123, name = "/data/run456.root") > > > > title on Canvas is (in CVS version): > > > > event: 123, from file: (null) > > > > why (null) ??? > in pro version (4.00.08) is all OK: > > > > event: 123, from file: /data/run456.root > > > > > > > Thanks, > Jano > ____________________________________ > http://www.logofun.pobox.sk - urobte radost svojmu telefonu
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET