Vincent, I cannot reproduce this problem. Please give more information: -which version/OS? -did you build the executable yourself or are you using one of the binary distributions? -Do you have a rootlogon,logoff.C file ? Rene Brun On Mon, 22 Dec 2003, Vincent Roberfroid wrote: > Hi rooters, > > I work with cvs version of root. > I have a problem to exit to root using this simple macro (test.C): > ---------------------------------------------------- > char *rootfile = "file.root"; > > void test() { > if (!TClassTable::GetDict("TParticle")) gSystem->Load("libEG"); > TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject(rootfile); > if(!f) f = new TFile(rootfile,"READ"); > } > ------------------------------------------------------ > > This problem is similar to the problem already noticed in the url : > http://root.cern.ch/phpBB2/viewtopic.php?t=296 > > Could you help me ? > > Thank you > > Vincent >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET