[ROOT] gROOT->Reset() was the problem !

From: GENTIT Francois-Xavier DAPNIA (GENTIT@dapnia.cea.fr)
Date: Mon Apr 15 2002 - 10:19:46 MEST


  Dear René and Valeri,

  I have found the reason why Litrani was not working as a .dll or .so,
although all my other jobs were working ok as .dll or .so! It was because
all my CINT macros for Litrani were beginning with:

gROOT->Reset();

  and I was doing 

gSystem.Load("libLitrani.dll");

   manually, before launching the macro. It appears that gROOT->Reset()
destroys somehow gSystem.Load() !!! By putting gSystem.Load() AFTER
gROOT->Reset(), everythings works fine.

  I think it is a trap of ROOT which should be documented!

          F.X. Gentit
          DAPNIA/SPP CEN Saclay
          tel : 01 69 08 30 38     fax : 01 69 08 64 28
          web : http://home.cern.ch/~gentit/



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:50 MET