rem: try { if (global_session_deleted == false) { global_session_deleted = true; if (global_pointer_to_ecaparams != 0) { delete global_pointer_to_ecaparams; global_pointer_to_ecaparams = 0; } } } catch(ECA_ERROR& e) { cerr << "---\nERROR: [" << e.error_section() << "] : \"" << e.error_message() << "\"\n\n"; } catch(...) { cerr << "---\nCaught an unknown exception!\n"; }
context: int main(int argc, char *argv[]){  struct sigaction es_handler;  es_handler.sa_handler = signal_handler;  sigemptyset(&es_handler.sa_mask);//    sigaddset(&es_handler.sa_mask, SIGTERM);//    sigaddset(&es_handler.sa_mask, SIGINT);//    sigaddset(&es_handler.sa_mask, SIGQUIT);//    sigaddset(&es_handler.sa_mask, SIGABRT);  es_handler.sa_flags = 0;  sigaction(SIGTERM, &es_handler, 0);  sigaction(SIGINT, &es_handler, 0);  sigaction(SIGQUIT, &es_handler, 0);  sigaction(SIGABRT, &es_handler, 0);  try {    COMMAND_LINE cline = COMMAND_LINE (argc, argv);    parse_command_line(cline);    bool debug_to_cerr = true;    if (cline.has("-D") != true) {      debug_to_cerr = false;      attach_debug_object(&textdebug);      }    ecadebug->set_debug_level(ECA_DEBUG::info |			      ECA_DEBUG::module_flow);    if (cline.has("-o:stdout") ||	cline.has("stdout") || 	cline.has("-d:0") || 	cline.has('q'))      ecadebug->disable();    else {      if (debug_to_cerr == true)	print_header(&cerr);      else	print_header(&cout);    }        global_pointer_to_ecaparams = new ECA_SESSION(cline); // used only for signal handling!    if (global_pointer_to_ecaparams->is_interactive()) start_iactive_readline(global_pointer_to_ecaparams);    else {      if (global_pointer_to_ecaparams->is_selected_chainsetup_connected() == true) {	ECA_PROCESSOR epros (global_pointer_to_ecaparams);	epros.exec();      }    }  }  catch(ECA_ERROR& e) {    cerr << "---\nERROR: [" << e.error_section() << "] : \"" << e.error_message() << "\"\n\n";  }  catch(DBC_EXCEPTION& e) {     cerr << "Failed condition \"" 	 << e.type_repp          << ": "          << e.expression_repp	 << "\": file " 	 << e.file_repp 	 << ", line " 	 << e.line_rep 	 << "." 	 << endl;    clean_exit(-1);  }  catch(...) {    cerr << "---\nCaught an unknown exception!\n";  }  try {    if (global_session_deleted == false) {      global_session_deleted = true;      if (global_pointer_to_ecaparams != 0) {	delete global_pointer_to_ecaparams;	global_pointer_to_ecaparams = 0;      }    }  }  catch(ECA_ERROR& e) {    cerr << "---\nERROR: [" << e.error_section() << "] : \"" << e.error_message() << "\"\n\n";  }  catch(...) {    cerr << "---\nCaught an unknown exception!\n";  }  //  ecaparams->~ECA_SESSION();  ecadebug->flush();      return(0); // everything ok!}