I am trying to create a executable with zeromq libaries with labview. But while running I am having this error.
Error-7: Call Library Function Node in zeromq.lvlib:zmq_context.lvclass:zmq_ctx_create.vi:5610001->zmq_REQ-REP.vi
The VI runs perfectly fine, though.
I tried to include libzmq.dll for 64 bit system and created another executable. But problem still remains the same.
Can you help me??
Thanks
kiraone
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Without seeing your code it's very difficult to say much about what you've done right or wrong.
As a complete guess, the error you're getting says it's from zmq_ctx_create. You shouldn't be attempting to (re)create a context while your application is already running - a context should be created only once on application initialization, and only destroyed on application termination. You use that one context for the duration of your application. If you're trying to call create context when one already exists it's likely to throw an error, and this might also explain why your code continues to work - a context already exists.
That's just a guess though.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I verified running the executable by closing all related VIs and exclusively closing context from python code. Still I get the same error when I run the executable.
Here, I am attaching my VI.
I think this code is relative to loading some dlls with the executable. I have specifically included all the two dlls, lvzmq64 and libzmq64 , as mine is Win-10, 64 bit.
Hi Mr. Martin,
I am trying to create a executable with zeromq libaries with labview. But while running I am having this error.
Error-7: Call Library Function Node in zeromq.lvlib:zmq_context.lvclass:zmq_ctx_create.vi:5610001->zmq_REQ-REP.vi
The VI runs perfectly fine, though.
I tried to include libzmq.dll for 64 bit system and created another executable. But problem still remains the same.
Can you help me??
Thanks
kiraone
Without seeing your code it's very difficult to say much about what you've done right or wrong.
As a complete guess, the error you're getting says it's from zmq_ctx_create. You shouldn't be attempting to (re)create a context while your application is already running - a context should be created only once on application initialization, and only destroyed on application termination. You use that one context for the duration of your application. If you're trying to call create context when one already exists it's likely to throw an error, and this might also explain why your code continues to work - a context already exists.
That's just a guess though.
Hi Marcus,
Thanks for the reply.
I verified running the executable by closing all related VIs and exclusively closing context from python code. Still I get the same error when I run the executable.
Here, I am attaching my VI.
I think this code is relative to loading some dlls with the executable. I have specifically included all the two dlls, lvzmq64 and libzmq64 , as mine is Win-10, 64 bit.
Am I missing anything else. Please suggest.
Thanks
Kiran
https://sourceforge.net/p/labview-zmq/discussion/general/thread/afd655f036/#f830
Hi Marcus,
This post solved the issue. Key is add the dlls to the lvclass files instead.