[ROOT] call to method TTree::Process() twice

From: Jose Caballero (Jose.Caballero@ciemat.es)
Date: Tue Jul 22 2003 - 19:07:47 MEST


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