[zeromq-dev] NetMQ: Context Dispose/Terminate hangs

Giacomo Tesio giacomo at tesio.it
Wed Oct 23 23:38:56 CEST 2013


Hi list,

I'm following my adventure with ZeroMQ/NetMQ and I've found a strange
behaviour: when I Dispose/Terminate the NetMQContext the call doesn't
return.

This is the code of the method (from github):


if (Interlocked.CompareExchange(ref m_isClosed, 1, 0) == 0)
{
     ZMQ.Term(m_ctx);
}


Is this a bug? What should I do to properly dispose the context?


Giacomo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131023/03fe6f80/attachment.htm>


More information about the zeromq-dev mailing list