Changeset 289 in pacpusframework for trunk/src/DBITEPlayer
- Timestamp:
- Mar 26, 2014, 9:27:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/DBITEPlayer/src/main.cpp
r221 r289 43 43 #include <boost/assert.hpp> 44 44 #include <boost/cstdlib.hpp> 45 #include <boost/exception/diagnostic_information.hpp> 45 46 46 47 using namespace pacpus; … … 56 57 57 58 PacpusApplication app(argc, argv); 58 ComponentManager 59 ComponentManager* mgr = ComponentManager::getInstance(); 59 60 60 61 static ComponentFactory<DbtPlyEngine> factoryDbtPlyEngine("DbtPlyEngine"); … … 79 80 } 80 81 81 int exitStatus ;82 int exitStatus = boost::exit_exception_failure; 82 83 try { 83 84 // start all the components (engine, trigger, user interface and the DBT file managers) … … 87 88 // stop all components before exiting app 88 89 mgr->stop(); 89 90 90 mgr->destroy(); 91 91 } catch (PacpusException& e) { 92 LOG_WARN("Pacpus exception caught: " << e.what()); 93 exitStatus = boost::exit_exception_failure; 92 LOG_FATAL("PacpusException caught:" << e.what() << "\n" << boost::diagnostic_information(e)); 93 } catch (boost::exception& e) { 94 (void)e; // unused 95 LOG_FATAL("boost::exception caught:" << boost::diagnostic_information(e)); 96 } catch (std::exception& e) { 97 (void)e; // unused 98 LOG_FATAL("std::exception caught:" << e.what()); 94 99 } 95 100
Note:
See TracChangeset
for help on using the changeset viewer.