Skip to content

SignalR C++ Client read access violation from signalr_client_config destructor #43617

Closed
@ChrisHawkridge

Description

@ChrisHawkridge

Hi there,

I am getting a read access violation as soon as an instance of signalr_client_config goes out of scope.
I pulled the microsoft-signalr package from vcpkg and I am using Visual Studio 2022.

To Reproduce

I created a blank windows console app with the following code.

#include <iostream>
#include "signalrclient/hub_connection.h"

int main()
{
    std::cout << "Hello World!\n";

    {
        std::map<std::string, std::string> http_headers;
        http_headers.insert({ "Authorization", "" });

        signalr::signalr_client_config config;
        config.set_http_headers(http_headers);
    }

    std::cout << "finished.\n";
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-signalrIncludes: SignalR clients and servers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions