clrzmq icon indicating copy to clipboard operation
clrzmq copied to clipboard

IntPtr ContextHandle cannot be used

Open ckohrt opened this issue 10 years ago • 0 comments

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

ckohrt avatar May 28 '14 20:05 ckohrt