Normally to get a valid ROOT program you should create a TApplication
object in main. This should take care of the proper initialization.
Cheers, FOns.
On 28/03/2011 14:11, Bertrand Bellenot wrote:
> Hi Nick,
>
> You're welcome.
> I think it is a bit more complex than that, since I tried with e.g. gROOT->ProcessLine("#include<iostream>"); and it didn't solve the problem.
> And just in case you wonder why I tried this, it was simply by looking at the initializations done in the TRint constructor...
>
> But let's see if Axel or Philippe have a proper explanation.
>
> Cheers,
> Bertrand.
>
> -----Original Message-----
> From: Nicholas Devenish [mailto:misnomer_at_gmail.com]
> Sent: 28 March 2011 13:44
> To: Bertrand Bellenot
> Cc: roottalk_at_root.cern.ch; pcanal_at_fnal.gov
> Subject: Re: [ROOT] Erratic TInterpreter::GetInterfaceMethod behaviour?
>
> Hi Bertrand,
>
> On Mon, Mar 28, 2011 at 11:52 AM, Bertrand Bellenot
> <Bertrand.Bellenot_at_cern.ch> wrote:
>> For me, adding gROOT->ProcessLine("#include<iostream>"); in your main() solved the problem. I.e.:
>
> Thanks! - this works around the problem and allows me to continue with
> my work. At a hazardous guess, I can imagine it is something to do
> with the interpreter not being properly initialised until it is passed
> a valid command to parse (i.e. initialisation order), though I admit
> the couple of other items I tried didn't work. Perhaps I should file a
> savannah report.
>
> Nick
>
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers_at_cern.ch Phone: +41 22 7679248 WWW: http://fons.rademakers.org Fax: +41 22 7669640Received on Mon Mar 28 2011 - 14:15:15 CEST
- application/pkcs7-signature attachment: S/MIME Cryptographic Signature
This archive was generated by hypermail 2.2.0 : Mon Mar 28 2011 - 17:50:02 CEST