TString::Readline crashes

mayer@ik1.fzk.de
Wed, 28 Oct 1998 14:50:41 +0200


Dear rooters ..

Whats wrong with the following test program? It crashes under DEC/OSF (root 2.012)
after having read the first line of an arbitrary ascii file. Hitting the return key
again, or starting it a second time, it runs.

Regards Hajo

{
gROOT.Reset();
G__loadfile("iostream.h");
TString buffer;
ifstream crif("text.car");

while (!crif.eof()) {

buffer.ReadLine(crif);
printf(" %s\n",buffer.Data());

}
}