Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntPtr ContextHandle cannot be used #162

Open
ckohrt opened this issue May 28, 2014 · 0 comments
Open

IntPtr ContextHandle cannot be used #162

ckohrt opened this issue May 28, 2014 · 0 comments

Comments

@ckohrt
Copy link

ckohrt commented May 28, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant