Dear Olivier, This answer is from just a first impression. I did not have time to analyze this today. Forgive me if I make wrong comment. The problem can be G__unloadfile("iostream.h"). There are complications about loading iostream.h and Root libraries. I guess unloading iostream.h can cause unloading of Root libraries, and it causes problem. I recommend not to load/unload iostream.h in macro. Please load it in rootlogon.C and leave it through the process. // rootlogon.C { ... G__loadfile("iostream.h"); } Thank you Masaharu Goto >Hi Rooters! > >I call (in a compile GUI root code) the function echelle via >gROOT->ProcessLine(".x echelle.C(2)") (see the function at the end). >Evry things are ok the first time I called this function but when I call >it again I have this error message: > > *** Break *** segmentation violation >Function echelle() busy flag cleared > >just after that the gDirectory->ls() has been executed. What am I doing >wrong? >Thanks, >Olivier Meplan >------------------------ >int echelle(Int_t i=1) >{ > G__loadfile("iostream.h"); > > gDirectory->ls(); > cout<<"OK "<<i<<endl; > > G__unloadfile("iostream.h"); > return 0; >} >
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET