Exception: Exception 0x80000003 encountered at address 0x7ff9db8a0948 #1868
Unanswered
LetAmericaGreatAgain
asked this question in
Q&A
Replies: 1 comment
-
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)
<#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
<#1861>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2NMOMIPAHFYZDMEHCPZSVD3CU35JAVCNFSM6AAAAAB64IGPR6VHI2DSMVQWIX3LMV43ASLTON2WKOZTGEZDSNBYGQYDANQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
Compiler: MSVC, C++ version: C++20
Beta Was this translation helpful? Give feedback.
All reactions