[ROOT] Trouble with TString after upgrade from 3.00.04 to 3.00.06

From: Andreas Zoglauer (zog@mpe.mpg.de)
Date: Tue Apr 10 2001 - 08:55:54 MEST


Hi,

After the upgrade from version 3.00.04 to 3.00.06 I experienced some 
trouble with the TString class which is frequiently but not always 
reproduced by the following example running on SuSE 7.1 (or 6.4, 7.0):

-----------------------------------------------------------------------------

#include <TString.h>
#include <strstream.h>
#include <iostream.h>

class MDummy {
public:
  MDummy() {}
  ~MDummy() {}

  void Output() {
    TString Bla("abcdefghijklmonoprstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
  }
};

int main() {
  MDummy D;
  D.Output();

  strstream Test;
  Test<<"Testing strstream class...";
  cout<<Test.str()<<endl;

  return 0;
}


-------------------------------------------------------------------------------

Output with root 3.00.04:
>> Testing...

Output with root 3.00.06:
>> Testing strstream class...noprstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
... or something similar.


The Problem also appears on SuSE 7.0 and SuSE 6.4, compiled with option 
"linux" or "linuxegcs" or "linuxsuse6". Furthermore it happens with the  
"intel x86 Linux" precompiled distributions.


Any ideas?

Andreas



----------------------------------------------------------------------
Andreas Zoglauer
MPI fuer extraterrestrische Physik         Phone:    +49/89-30000-3848
Giessenbachstr.                            Fax:      +49/89-30000-3569
85740 Garching, Germany                    Email:    zog@mpe.mpg.de
----------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET