cpp-netlib/cpp-netlib — Issue #84: Unhandled exception: Access violation writing location in 0.9 devel
Author: woutervd
Created: 2012-01-03 11:20:09+00:00
State: open

Awesome framework. I haven't gotten it to work yet though.
I grabbed the source from the 0.9-devel branch because older sources didn't compile for me or had other issues.

I used CMake to build cppnetlib-client-connections.lib and cppnetlib-uri.lib. Linked it with my project. Wrote some simple test code, build it with VS2010 and ran my application.

http::client client;
http::client::request request("the url");
request << header("Connection", "close");
http::client::response response = client.get(request);
std::cout << body(response) << std::endl;

The exception occured in: void async_connect(...) in asio/basic_socket.hpp at the following line,
BOOST_ASIO_MOVE_CAST(ConnectHandler)(handler), ec));

It always occurs. Is there a simple fix for this? Do you need more info?
The code in run in a thread so my call stack information is limited.

Regards,

Wouter