Boost logo

Boost Users :

Subject: [Boost-users] [netlib] throwing exceptions with http_client.cpp
From: Christian Henning (chhenning_at_[hidden])
Date: 2010-10-31 16:30:46


Hi there, I'm trying to run http_client.cpp taken from the netlib
examples. But unfortunately it's throwing a lot of exceptions.

The line:

cout << body(response) << endl;

results into the following exceptions:

First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception:
boost::exception_detail::clone_impl<boost::system::system_error> at
memory location 0x00bddcd0..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception:
boost::exception_detail::clone_impl<boost::system::system_error> at
memory location 0x00bddcd0..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception:
boost::exception_detail::clone_impl<boost::system::system_error> at
memory location 0x00bddcd0..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception:
boost::exception_detail::clone_impl<boost::system::system_error> at
memory location 0x00bddcd0..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception:
boost::exception_detail::clone_impl<boost::system::system_error> at
memory location 0x00bddcd0..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception:
boost::exception_detail::clone_impl<boost::system::system_error> at
memory location 0x002cece0..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception:
boost::exception_detail::clone_impl<boost::system::system_error> at
memory location 0x00bddcd0..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception: [rethrow] at memory location 0x00000000..
Unhandled exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception:
boost::exception_detail::clone_impl<boost::system::system_error> at
memory location 0x002cece0..

here is my stack:

msvcr100d.dll!_CxxThrowException(void *
pExceptionObject=0x000000000030ee20, const _s__ThrowInfo *
pThrowInfo=0x000000013f526cd8) Line 157 C++
test_netlib_vc10.exe!boost::exception_detail::clone_impl<boost::system::system_error>::rethrow()
 Line 421 C++
test_netlib_vc10.exe!boost::rethrow_exception(const
boost::shared_ptr<boost::exception_detail::clone_base const > &
p={...}) Line 413 C++
test_netlib_vc10.exe!boost::detail::future_object_base::wait(bool
rethrow=true) Line 170 + 0x11 bytes C++
test_netlib_vc10.exe!boost::detail::future_object<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >::get() Line 331 C++
test_netlib_vc10.exe!boost::shared_future<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >::get() Line 847 + 0x12 bytes C++
test_netlib_vc10.exe!boost::network::http::async_message<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::network::tags::http,boost::network::tags::simple>,boost::network::tags::async>,boost::network::tags::tcp>,boost::network::tags::default_string>
>::body() Line 107 + 0x18 bytes C++
test_netlib_vc10.exe!boost::network::http::impl::body_wrapper<boost::network::http::basic_response<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::network::tags::http,boost::network::tags::simple>,boost::network::tags::async>,boost::network::tags::tcp>,boost::network::tags::default_string>
> >::operator std::basic_string<char,std::char_traits<char>,std::allocator<char>
>() Line 30 + 0x12 bytes C++
test_netlib_vc10.exe!boost::network::http::body<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::network::tags::http,boost::network::tags::simple>,boost::network::tags::async>,boost::network::tags::tcp>,boost::network::tags::default_string>
>(const boost::network::http::basic_response<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::network::tags::http,boost::network::tags::simple>,boost::network::tags::async>,boost::network::tags::tcp>,boost::network::tags::default_string>
> & message={...}) Line 41 + 0x1f bytes C++
test_netlib_vc10.exe!main(int argc=2, char * *
argv=0x00000000004f7850) Line 86 + 0x15 bytes C++
test_netlib_vc10.exe!__tmainCRTStartup() Line 555 + 0x19 bytes C
test_netlib_vc10.exe!mainCRTStartup() Line 371 C

I'm using boost trunk with Visual Studio 10 compiling x64 bit code.

Anyone any idea what going on here?

Thanks,
Christian


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