1.Assertion failed: Successful WSASTARTUP not yet performed (…\src\signaler.cpp:192)
发现czmq,windows64 release版本的情况下,是因为有个exception throw 在libzmq中,找了半天,中文论坛在这方面没有太多的讨论。最终在GitHub上找到了解决结果。
" Windows lacks a usable way to do the equivalent of atexit() when built as DLL.",
“It’s a Windows problem in CZMQ, and it’s because Windows lacks a usable way to do the equivalent of atexit() when built as DLL.”
在主线程.join或者.detach之后, 需要调用zsys_shutdown()。从而保障线程能够完整的退出。
链接:https://github.com/zeromq/czmq/issues/1788
Successful WSASTARTUP not yet performed
最新推荐文章于 2021-09-22 22:30:27 发布