Re: CINT funny error

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 29 Apr 2010 21:45:14 +0200


Replace your loop by

   for (Int_t jj = 0; jj < nR; ++jj) {

      TPad *pad = (TPad*)CC->cd(jj+1);
      if (jj) pad->SetLogy(); //works

   }

Rene Brun

Vassili Maroussov wrote:
> Dear ROOTers,
>
> please find a small script attached, which generates a strange error.
> Here is the output I got:
>
> [vmarouss_at_Ezhik-HDX18 PlayROOT]$ root
> *******************************************
> * *
> * W E L C O M E to R O O T *
> * *
> * Version 5.25/03 1 October 2009 *
> * *
> * You are welcome to visit our Web site *
> * http://root.cern.ch *
> * *
> *******************************************
>
> ROOT 5.25/03 (trunk_at_30887, Oct 27 2009, 19:20:52 on linuxx8664gcc)
>
> CINT/ROOT C/C++ Interpreter version 5.17.00, Dec 21, 2008
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] .x split.C
> Error: non class,struct,union object $gPad used with . or -> split.C:8:
> *** Interpreter error recovered ***
> root [1]
>
> Regards,
>
> Vassili
>
Received on Thu Apr 29 2010 - 21:45:22 CEST

This archive was generated by hypermail 2.2.0 : Thu Apr 29 2010 - 23:50:01 CEST