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

From: Andreas Zoglauer (
Date: Fri Mar 05 2004 - 10:47:26 MET

Hello Valeri,

I removed all hints of the old root and all PATH, etc. variables needed 
by root
I upgraded to Visual C++ 6 service pack 5.
I installed your Qt Root.
I created a new project.

In order to make the program compile and run, I had to add some paths:

In VC++ -> Tools -> Options -> Directories -> Include files:

In VC++ -> Tools -> Options -> Directories -> Library files:

In VC++ -> Project -> Settings -> Link -> Object modules:

In Windows XP SP1 I have to add the PATH variable:
(Otherwise libCORE.dll can not be found, when the program tries to launch)

Comparing this with the instruction from the then

1. the \GX switch was already on
2. using Riostream.h did not solve the problem
3. MSVCIRT.LIB does not appear anywhere in the settings so no nee d to 
replace it
4. I did not add any of the libraries, because QTRoot is "one-click" 

But still my little programm crashes:

#include <iostream>
using namespace std;
#include "TString.h"

int main()
    TString W = "Hello World";
    cout<<W<<endl;             // <- Crash with access violation

    return 0;

And CINT does not print the following line:

TString W = "Hello World";
cout<<W<<endl;               // no output

cout<<(const char *)W<<endl; // output ok
Hello World

So, can you give me any hint where I might have a mess of different VC++ 

Any help is appreciated

Andreas Zoglauer

Valeri Fine wrote:
> Hello Andreas.  Can you try to install the version
>>From to see whether your problem still persists.
> It is one click installation.
> I guess you have some mess (mix) of the different VC++ dlls.
> ----
> Best regards
>                    Valeri


Andreas Zoglauer

MPI fuer extraterrestrische Physik         Phone:    +49/89-30000-3848
Postfach 1312                              Fax:      +49/89-30000-3569
85741 Garching, Germany                    Email:

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