[zeromq-dev] Quick question with local only client
Martin Sustrik
sustrik at fastmq.com
Wed May 13 15:47:48 CEST 2009
>> Every day when I start my app I get the following error a couple of
>> times, then the app seems to work. This app is a single process that
>> just uses zmq to route messages between threads.
>>
>> zmq::locator_t::resolve_
>> endpoint(const char*, char*, size_t): Assertion
>> `global_locator' failed.
>
> This means that you've initialised 0MQ for in-process messaging (no
> zmq_server) and you are trying to bind to an object (exchange/queue)
> that does not exist in the process.
To be more concrete: It is preferrable to create process-scoped
queue/exchange and launch a child thread afterwards. The child thread
can then safely bind to the the object created by it's parent.
Martin
More information about the zeromq-dev
mailing list