TString* s; // In the private area of Myclass
// Next 2 lines are in the member function void Myclass::doit1()
s = new TString("test");
cout << " First test output " << s->Data() << endl;
// Next 2 lines are in the member function void Myclass::doit2()
cout << " Here comes the second." << endl;
cout << " Second test output " << s->Data() << endl;
Now the crazy thing is that the 'First test output' is o.k.,
whereas in the second case I get an error due to 'illegal pointer
to class object'.
To my opinion this points to a ROOT/CINT problem, which might be
solved in version 2.0 already (I am running ROOT 1.03/09 g++ on
DECAlpha).
Sorry to have polluted this roottalk list with all these mails,
I just realized that this stuff should go to ROOTDEV.
I will do so in case more mails on this subject are needed.
Cheers,
_/_/ _/ _/ _/_/_/_/ _/ _/
_/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/_/
_/ _/_/ _/ _/ _/ _/
_/ _/ _/ _/_/_/_/ _/ _/
*----------------------------------------------------------------------*
Dr. Nick van Eijndhoven Department of Subatomic Physics
email : nick@fys.ruu.nl Utrecht University / NIKHEF
tel. +31-30-2532331 (direct) P.O. Box 80.000
tel. +31-30-2531492 (secr.) NL-3508 TA Utrecht
fax. +31-30-2518689 The Netherlands
WWW : http://www.fys.ruu.nl/~nick Office : Ornstein lab. 172
----------------------------------------------------------------------
tel. +41-22-7679751 (direct) CERN PPE Division / ALICE exp.
tel. +41-22-7675857 (secr.) CH-1211 Geneva 23
fax. +41-22-7679480 Switzerland
CERN beep : 13+7294 Office : B 160 1-012
*----------------------------------------------------------------------*