cppzmq
cppzmq copied to clipboard
crash with `inproc` mode
OS: Win10 Version: cppzmq: 4.7.1
Follow the pubsub_multithread_inproc.cpp code, everything is OK, but if I move the subscriber to dll and when some conditions are met, exit the thread, then process crash.
I have a reproduce repo in here. Any suggestions?
Dig some info in stackoverflow, not very precisely, but I guess is that the ctx
value passed cross module caused.
Currently, just change inproc
to tcp
also work(need change ctx io threads to non-zero value).
I was sure I read somewhere that inproc:// is not supported on windows. Is it now supported?
@jlucke86 No, it's ipc
, as mentioned here: http://api.zeromq.org/2-1:zmq-ipc
The inter-process transport is currently only implemented on operating systems that provide UNIX domain sockets.