[Cppcms-users] exception from cppcms
Brought to you by:
artyom-beilis
From: 陈抒 <csf...@gm...> - 2011-11-08 11:49:02
|
Hello, I got the following error log today: 2011-11-08 10:00:26 GMT; main, error: exception in main,ex:aio::: invalid endpoint (main.cpp:61) My code looks like so: int main(int argc,char ** argv){ // init_log(); cppcms::json::value config_json; my_application& app= app_singleton_holder::Instance(); configuration* config = new configuration(); try{ .... ..... cppcms::service srv(argc,argv); srv.applications_pool().mount(cppcms::applications_factory<rest::prize_service>()); srv.run(); }catch(std::exception const& ex) { BOOSTER_ERROR("main") << "exception in main,ex:" <<ex.what(); return 3; } } I don't know what causes the exception(red above),but it causes my application to quit. 陈抒 Best regards http://blog.csdn.net/sheismylife |