Back Midas Rome Roody Rootana
  Root Display GUI  Not logged in ELOG logo
Message ID: 142     Entry time: 22 Nov 2009
Author: Exaos Lee 
Topic: Suggestion 
Subject: New main.cxx for roody 
The original "main.cxx" always produced "segmentation fault" on my system. So I 
rewrite a new one as the attached "main_el.cxx". It works stable on my systems. I 
use "getopt.h" to parse the command line options. Also, the options are altered 
as the following:
-------------------
--mhost, -M <mhost>   connect to MIDAS server <mhost>
--rhost, -R <rhost>   connect to ROOT server <rhost>
--port, -p <port>     connect to port <port>
--config, -c <xml>    Using config file <xml> in XML format
-------------------
The main_el.cxx doesn't pass options to TApplication except root file names. 
Please see the source in detail. I hope it may help.
Attachment 1: main_el.cxx  3 kB  | Show | Show all
ELOG V3.1.4-2e1708b5