Exception: Exception 0x80000003 encountered at address 0x7ff9db8a0948
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
14: this->webApp = new uWS::App();
Compiler: MSVC, C++ version: C++20
Yes it can be run in another thread but if so, you cannot call any method from other threads. The only thread safe function is Loop::defer which is like io_context::dispatch in asio. See read more
Den mån 9 juni 2025 kl 09:48 skrev Trump @.***>:
LetAmericaGreatAgain created an issue (uNetworking/uWebSockets#1861) https://github.com/uNetworking/uWebSockets/issues/1861
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 http://17644 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
— Reply to this email directly, view it on GitHub https://github.com/uNetworking/uWebSockets/issues/1861, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2NMOMIPAHFYZDMEHCPZSVD3CU35JAVCNFSM6AAAAAB64IGPR6VHI2DSMVQWIX3LMV43ASLTON2WKOZTGEZDSNBYGQYDANQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>