Skip to content

Unhandled exception #696

@rhegner

Description

@rhegner

Since I cannot build version 0.12 with VS2015, I tried the latest version in the 0.13-release branch (6a7e92c).

I can build this version successfully (with VS2015, Boost 1.62.0, OpenSsl 1.0.2j) but when I try this simple code I get an unhandled exception in the last line of the try-block where I try to access the body.

boost::network::http::client client_;
try
{

    boost::network::http::client::request request_("http://127.0.0.1:8000/");
    request_ << boost::network::header("Connection", "close");
    boost::network::http::client::response response_ = client_.get(request_);
    std::string body_ = body(response_);
}
catch (const std::exception& ex)
{
    std::string message = ex.what();
}

The error message is: "Unhandled exception at 0x75BDC54F in Test.exe: Microsoft C++ exception: boost::exception_detail::clone_implstd::exception_ptr at memory location 0x002CFC40."

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy