Re: [ROOT] Different behaviour (i.e. Crash) of TString on Linux andWindows

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Mar 05 2004 - 14:10:41 MET


This problem had been fixed in CINT 5.15.124
If you run with an older version, upgrade your system to the current CVS.

Rene Brun

Andreas Zoglauer wrote:
> 
> Hi Nick,
> 
> Thanks for the reply.
> I am already using root 4.00.02.
> I have tested serveral root versions and the first one with which it
> does not appear is 3.04.02, which was compiled for Visual C++ 6 and not
> 7. unfortunately 3.04.02 has some other nasty problems...
> 
> I know that "W.Data()" works.
> 
> Nevertheless, since in the following function is defined:
> ostream& operator<<(ostream& str, const TString& s);
> also cout<<W<<endl; should work as expected from Linux.
> 
> The problem is, at the moment I am trying to port 8 MB of source code
> based on ROOT from Linux to Windows. And really unfortunately I am
> relaying heavily on cout<<W<<endl; to work ... ;-((
> 
> Ciao,
> Andreas
> 
> Nick van Eijndhoven wrote:
> > Hi Andreas,
> > I have seen this behaviour in the past as well, but understood
> > that the problem should be fixed now in ROOT version 4.
> > Anyhow, the way I solved the problem was by
> >
> > cout << W.Data() << endl;
> >
> > This works correctly on all platforms and gives the correct output.
> >
> > Cheers,
> > Nick.
> >
> >



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET