Re: [ROOT] TCanvas in compiled application

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Dec 18 2002 - 18:45:56 MET


Hi Andrea,

OK, thanks for the confirmation.
Note that the 3 lines 
 extern void InitGui();
 VoidFuncPtr_t initfuncs[]={InitGui,0};
 TROOT root("analisi x5", "analisi x5",initfuncs);

are not necessary since ROOT version 3.0
You can remove them from your program.

Rene Brun

On Wed, 18 Dec 2002, Andrea Di Simone wrote:

> On Wed, 18 Dec 2002, Rene Brun wrote:
> 
> > Andrea,
> > 
> > Are you running with the standard ROOT executable or are you making
> > your own main program?
> > If you are making your own main program, are you creating a TApplication
> > object as illustrated in the various ROOT test programs ?
> 
> Hi,
> 
> At the beginning of my program I put these lines
> 
> extern void InitGui();
> VoidFuncPtr_t initfuncs[]={InitGui,0};
> TROOT root("analisi x5", "analisi x5",initfuncs);
> 
> This, as I told you, works fine with 3.03/9 (even if I don't create a
> TApplication).
> 
> Now, following your suggestion, I created a TApplication, and this solved
> the problem also with the last release.
> 
> Thanks for your help,
> 
> Andrea.
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:24 MET