Menu

ZMQ error while creating application

2021-12-08
2021-12-12
  • Kiran kumar sappati

    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

     
  • m

    m - 2021-12-11

    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.

     
  • Kiran kumar sappati

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.