Difficult to exit from ROOT after loading a Class

Dear rooter,

I work with cvs version of root3.10.
I would like to execute a simple macro :

{
if (!TClassTable::GetDict(“TParticle”)) gSystem->Load(“libEG”);
cout << youpee << endl;
}

Of course, CINT indicates the following error :
Error: Symbol youpee is not defined in current scope FILE:test.C LINE:3
*** Interpreter error recovered ***

But I cannot exit from root properly. There is a segmentation violation. This problem doesn’t appear when the first line is commented. (I don’t use logoff macro.)
How can I do to avoid this problem ?

Vincent

Vincent,

The following two scripts work without problem.

//youpee.C
{
if (!gROOT->GetClass(“TParticle”)) gSystem->Load(“libEG”);
cout <<“youpee”<<endl;
}

//youpee2.C
{
if (!TClassTable::GetDict(“TParticle”)) gSystem->Load(“libEG”);
cout <<“youpee”<<endl;
}

Rene

Dear René,

I know I must set the string into “”, but if I don’t, I cannot exit from root.
(except if I write .q 10 times…). There is a segmentation violation (except if I don’t load the libEG.so).

Vincent