Re: RE : VC++6.0 and 7.0 are not supported anymore from ROOT4-04-2 or newer

From: <WLavrijsen_at_lbl.gov>
Date: Sat, 14 May 2005 08:56:24 -0700 (PDT)


Fons,

> What is the problem with the GUI in the interpreter?

not wanting to cut in front of Christian, but since I seconded his statement, here's an example of what hit me two days ago:

 $ cat test.C
 #include <iostream>

 struct C {

    C() { std::cout << "creating a C" << std::endl; }     ~C() { std::cout << "destroying a C" << std::endl; }  };

 int test() {

    static C c;
    std::cout << "this is a little test program" << std::endl;     return 0;
 }
 $ root -b -q -l test.C
 root [0]
 Processing test.C

and then nothing ... it seems to be stuck in an infinite loop (top shows that root.exe takes about 45% cpu time). As an alternate, I do:

 $ cat test.C
 #include <iostream>

 struct C {

    C() { std::cout << "creating a C" << std::endl; }     ~C() { std::cout << "destroying a C" << std::endl; }  };

 static C c;

 int test() {

    std::cout << "this is a little test program" << std::endl;     return 0;
 }
 $ root -b -q -l test.C
 root [0]
 Processing test.C...
 creating a C
 this is a little test program
 (int)0

thus, it appears that the dtor is never called (or, if this were like VC++6, it could be std::cout being prematurely destroyed, but the original code had side effects in the dtor; so it really is the dtor not being called).

Whereas ACLiC works just fine in both cases.

This is on MacOSX 10.3.9, with ROOT from CVS HEAD of two days ago.

What I'm trying to do in my application (running the ATLAS Athena framework from ROOT/CINT, then dropping into the CINT prompt and allowing people to interactively access their data in the Athena TDS), requires some form of dictionary loading and subsequent use of those classes. Hence ACLiC alone is not enough. However, as in the above example, CINT alone doesn't work either. Finding the right balance between the two is harder than I hoped it to be.

Best regards,

           Wim

-- 
Wim.Lavrijsen_at_cern.ch   --   WLavrijsen_at_lbl.gov   --   www.lavrijsen.net

"Stop making excuses for your software."    --first step towards quality
Received on Sat May 14 2005 - 17:56:34 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:08 MET