Hi Ben,
Is your function Analyse interpreted or compiled?
There seems to be a problem with CINT unloading shared libs
like libProof and libTreePlayer. Could you add the two following
statements at the start of your function Analyse:
gROOT->LoadClass("TProof","Proof");
gROOT->LoadClass("TTreePlayer","TreePlayer");
In this function, you should also delete the TSelector object sel
before returning.
Rene Brun
Ben Morgan wrote:
>
> Hi Rene,
> I modified the code accordingly, but I'm still a similar error
> message:
>
> Warning in <ACLiC>: unmodified script has already been compiled and loaded
> Warning in <ACLiC>: it will be regenerated and reloaded!
> Function Analyse() busy. loaded after
> "/home/morgan/Analysis/drift1/protodrift/TDriftEvent/./EventSelector_C.so"
> Error: G__unloadfile() Can not unload
> "/home/morgan/Analysis/drift1/protodrift/TDriftEvent/./EventSelector_C.so",
> file busy FILE:Analyse.C LINE:16
> *** Interpreter error recovered ***
>
> This time, line 16 is the statement:
> TSelector *sel = TSelector::GetSelector("EventSelector.C++");
>
> I note from gObjectTable->Print() that there is a TSelector object left on
> the heap after execution, could this be causing the problem. Thanks again,
>
> Ben Morgan.
>
> --
> -------------------------------------------------------------------------------
> Mr. Ben Morgan
> Postgraduate Student
> University of Sheffield
> Department of Physics & Astronomy
> Hicks Building
> Hounsfield Road
> Sheffield S3 7RH
> -------------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET