Repository navigation
Description
Another issue reported on the Boost user's list:
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_implboost::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_implboost::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_implboost::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_implboost::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_implboost::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_implboost::system::system_error at
memory location 0x002cece0..
First-chance exception at 0x000007fefdd0aa7d in test_netlib_vc10.exe:
Microsoft C++ exception:
boost::exception_detail::clone_implboost::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_implboost::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_implboost::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_objectstd::basic_string<char,std::char_traits<char,std::allocator
::get() Line 331 C++
test_netlib_vc10.exe!boost::shared_futurestd::basic_string<char,std::char_traits<char,std::allocator
::get() Line 847 + 0x12 bytes C++
test_netlib_vc10.exe!boost::network::http::async_messageboost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2boost::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_wrapperboost::network::http::basic_response<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2boost::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,std::allocator
() Line 30 + 0x12 bytes C++
test_netlib_vc10.exe!boost::network::http::bodyboost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2boost::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_responseboost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2boost::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,
Activity
glynos commentedon Nov 5, 2010
Would you expect what he did to work though? For those who haven't read the OP it's here:
http://thread.gmane.org/gmane.comp.lib.boost.user/63368/focus=63504
Is your conclusion that we must always use full URIs? Should we mention this in the docs?
Merge pull request #22 from hocheung20/fix_link_errors