Hi Jose, To come with a diagnostic, we need more information from your side, eg your files program.C, MySelector.C and if possible a small tar file to test your problem. See: http://root.cern.ch/root/roottalk/RoottalkRules.html Rene Brun On Tue, 22 Jul 2003, Jose Caballero wrote: > Hi: > > I use ROOT vs. 3.05/05 in RedHat 7.3 > I'm tryind to do something like this: > > program(){ > TFile file("MyFile"); > TTree *T = (TTree *) file.Get("MyTree"); > ... > T->Process("MySelector.C"); > ... > T->Process("MySelector.C"); > ... > } > > > After second call to T->Process() I obtain: > > >Function program() busy. loaded after "program.C" > >Error: G__unloadfile() Can not unload "program.C", file busy > FILE:program.C LINE:18 > >*** Interpreter error recovered *** > > when LINE:18 is the second call to T->Process() > > If after second call I use, for example, the instruction cout, I obtain > a "segmentation violation" and the macro dies. > > How can I do more of one calls to method Process whitout this problems? > > Thank you in advance for your help. >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET