clrzmq
clrzmq copied to clipboard
IntPtr ContextHandle cannot be used
Hello, I try to share the context between C# and C/C++ to get inproc working.
When I try in C#: ZmqContext c = ZmqContext.Create(); IntPtr p2 = c.ContextHandle;
TA_StartReceive(p2);//C++ dll function
In C++: TRADITIONALAPI_API void __stdcall TA_StartReceive(void* context) { void *socket = zmq_socket (context, ZMQ_REP); int rc = zmq_bind (socket, "inproc://#1"); ... }
The socket is always NULL. Why?
Regards, Christian