Olivier,
Remove the statements
G__loadfile and G__unloadfile from your macro.
iostream.h is automatically loaded in Root 2.23/08
If you execute with version 2.22 add the following line in rootlogon.C
#include <iostream.h>
Rene Brun
Olivier Meplan wrote:
>
> 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;
> }
>
> --
> =========================================================
> |Olivier Meplan |E-mail:meplan@isn.in2p3.fr
> | |
> |ISN, 53 avenue des Martyrs | Tel +33(0)4 76-28-40-57
> |F-38026 GRENOBLE cedex | Fax +33(0)4 76-28-40-04
> =========================================================
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET