Re: Fatal in <TClass::TClass>: ROOT system not initialized

From: Valeriy Onuchin <Valeri.Onoutchine_at_cern.ch>
Date: Fri, 7 Jan 2005 17:40:41 +0100


Hi Galina,
gApplication->Terminate(0) calls ::exit(0); According to
http://www.cplusplus.com/ref/cstdlib/exit.html

"exit(0);" is "return 0; from main()"
Looks like it's normal behaviour.

Regards. Valeriy

> Dear rooters,
> On Suse linux 8.2 and ROOT 4.00/08, after the necessary includes and
> initializing the ROOT system first, I get this error. In fact the
> application works fine and only "gApplication->Terminate(0);" causes the
> problem.
> I do
>
> #include <TROOT.h>
> #include <TSystem.h>
> #include <TApplication.h>
> #include <TGClient.h>
> #include <TGFrame.h>
>
> int main(int argc, char **argv){
> TApplication theApp("App", &argc, argv);
> //GUI pops up
> App.Run();
> //do some plots/calculations
> //GUI pops up
> //pressing a button calls
> CloseWindow(){gApplication->Terminate(0);}
> return 0;
> }
>
> After some printout before and after the Terminate() I see only the
> first one.
> Do I miss anything?
>
> Best regards
> __________________________________________________________
> / Galina Asova / DESY Zeuthen /
> /==========================/==============================__
> / Platanenallee 6 /e-mail: Galina.Asova_at_desy.de A /
> / 15738 Zeuthen / phone: +49-(0)33762-77313 ___/
> / Germany / fax: +49-(0)33762-77330 / /
> /__________________________/_____________________________/ /
> _________________________/\_____________________________/
>
>
>
>
Received on Fri Jan 07 2005 - 17:47:18 MET

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