[zeromq-dev] libzmq.dll => zmq.dll ?

gonzalo diethelm gdiethelm at dcv.cl
Wed Feb 24 14:39:31 CET 2010


> > A bigger issue, that has already come up, is the multitude of
runtimes
> > under Windows.
> 
> We've been messing with the problem for few past days. So far it looks
> like this:
> 
> 0MQ library is linked with CRT version X. The client application may
> require version Y. If X=Y there's no problem. If the versions don't
> match, everthing still works OK (the interface is CRT agnostic) with
the
> exception of errno, which has its own instance in each CRT.
> 
> To cover this case, we've introduced zmq_errno() function yesterday
> which you can use to get errno from 0MQ in cases where your errno is
not
> the same thing as 0MQ's errno.
> 
> Any further issues you are aware of?

Any "singleton" thing has the same types of issues that you have in the
face of multiple threads. The case for errno is a good example: each
thread must have a separate value for it and, unfortunately, so does
each runtime.

I also remember issues with dynamic loading / unloading of DLLs. If the
DLL creates a singleton instance of anything, you might end up with
multiple instances of that thing, due to interactions with the runtime.

This is all kind of murky right now, I have not dealt with it (thank
God) for a long time... Looks like it's time to get back on that bus.
Sorry I can't be more specific.

-- 
Gonzalo Diethelm



----------------------------------------- 
Declaración de confidencialidad: Este Mensaje esta destinado para
el uso de la o las personas o entidades a quien ha sido dirigido y
puede contener información reservada y confidencial que no puede
ser divulgada, difundida, ni aprovechada en forma alguna. El uso no
autorizado de la información contenida en este correo podrá ser
sancionado de conformidad con la ley chilena. 
Si usted ha recibido este correo electrónico por error, le pedimos
eliminarlo junto con los archivos adjuntos y avisar inmediatamente
al remitente, respondiendo este mensaje. 

"Before printing this e-mail think if is really necesary".
Disclosure: This Message is to be used by the individual,
individuals or entities that it is addressed to and may include
private and confidential information that may not be disclosed,
made public nor used in any way at all. Unauthorized use of the
information in this electronic mail message may be subject to the
penalties set forth by Chilean law. 
If you have received this electronic mail message in error, we ask
you to destroy the message and its attached file(s) and to
immediately notify the sender by answering this message. 




More information about the zeromq-dev mailing list