Hi Roland,
Could you clarify what you mean by
"My experience goes exactly in the opposite direction"?
The main program syndrom
It is much better to execute a script (interpreted or compiled) from the ROOT prompt. This script can load automatically one or more shared libs (plug-ins). Making plug-ins makes your program more modular. It also greatly facilitates our job. In particular, we see many reports where people do not understand what is an event loop. They forget to instantiate a TApplication (or TRint) object. They forget to send the makefile to build the executable, etc.
Rene Brun
Roland Kuhn wrote:
> Hi Rene!
>
> On 30 May 2006, at 08:37, Rene Brun wrote:
>
>> If you create your own executable (with a main) and this application
>> has graphics,
>> you must create a TApplication object. See example in
>> $ROOTSYS/test/hworld.cxx
>> It is in general a very bad idea to create your own main program. You
>> better execute scripts
>> from the ROOT prompt.
>>
> Could you elaborate on this? My experience goes exactly in the
> opposite direction.
>
> Ciao,
> Roland
>
> --
> TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching
> Telefon 089/289-12575; Telefax 089/289-12570
> --
> CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482
> --
> UNIX was not designed to stop you from doing stupid things, because that
> would also stop you from doing clever things.
> -Doug Gwyn
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M+
> !V Y+
> PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++
> ------END GEEK CODE BLOCK------
>
>
>
>
Received on Wed May 31 2006 - 13:02:43 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET