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. |