|
Boost Users : |
Subject: Re: [Boost-users] Porting from boost_1_33 to boost_1_36 exception
From: ipangth (ipangth_at_[hidden])
Date: 2008-09-28 04:40:32
I just fixed the problem, the try catch( boost::system::system_error
& ) dosent work, i think it because try catch boost::asio error.
So i modify to that following code, and then it works.
try
{
m_pSocket->open(boost::asio::ip::tcp::v4());
}
catch (std::exception & e)
{
std::cout << e.what()<<std::endl;
}
2008/9/28 Emil Dotchevski <emil_at_[hidden]>:
> On Sat, Sep 27, 2008 at 7:37 PM, ipangth <ipangth_at_[hidden]> wrote:
>> I just port a project from boost_1_33 to boost_1_36 on fedora core 6.
>> After the program run a few minutes, it crashed and got a message:
>>
>> terminate called after throwing an instance of
>> 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error>
>>>'
>> what(): Already open
>>
>> I searched the message from boost docs and google but has nothing useful.
>> What does thi message mean? How can i catch the exception?
>
> This looks like a regular boost::system::system_error exception. You catch it by
>
> catch( boost::system::system_error & )
> {
> }
>
> Emil Dotchevski
> Reverge Studios, Inc.
> http://www.revergestudios.com/reblog/index.php?n=ReCode
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
-- Best regards, PangYongQiang
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net