Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exception: Exception 0x80000003 encountered at address 0x7ff9db8a0948 #1861

@LetAmericaGreatAgain

Description

@LetAmericaGreatAgain

Can uWebSockets-related objects be created and run in a child thread? Why does executing this->webApp = new uWS::App(); in std::thread detach mode cause an exception?

Thread-6-ucrtbased.dll thread
0x00007ff9db8a0949us create loop(void , void ()(us loop t ), void ()(us loop t ), void ()(us loop t *), unsigned int) /ibuv.c:133uWS::Loop:create(void *)Loop.h:77
uWS::Loop::get(void *)Loop.h.119
uWS::TemplatedApp:TemplatedApp<...>(SocketContextOptions) App.h.218
WebActivity::start(int, const std::any &)WebActivity.cpp:14

14: this->webApp = new uWS::App();

Compiler: MSVC, C++ version: C++20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions