[zeromq-dev] "WSASTARTUP not yet performed" - win32

Pieter Hintjens ph at imatix.com
Sat Feb 12 15:30:28 CET 2011

On Sat, Feb 12, 2011 at 3:12 PM, Pieter Hintjens <ph at imatix.com> wrote:

>  "Assertion failed: Successful WSASTARTUP not yet performed
> (c:\work\src\zeromq2\src\mailbox.cpp:263)"

The call stack is kind of strange, it shows 0MQ creating a socket pair
before doing WSAStartup, in the ctx constructor:

 	libzmq.dll!zmq::mailbox_t::make_socketpair(unsigned int *
r_=0x00376490, unsigned int * w_=0x0037648c)  Line 263 + 0x58
bytes	C++
 	libzmq.dll!zmq::mailbox_t::mailbox_t()  Line 48 + 0x10 bytes	C++
>	libzmq.dll!zmq::ctx_t::ctx_t(unsigned int io_threads_=1)  Line 39 + 0x93 bytes	C++
 	libzmq.dll!zmq_init(int io_threads_=1)  Line 238 + 0x30 bytes	C++

Martin, is there some plausible reason it's creating a mailbox_t
before successfully constructing its ctx?


More information about the zeromq-dev mailing list