[zeromq-dev] Ruby zmq.send error

Martin Sustrik sustrik at fastmq.com
Fri Jul 31 11:07:00 CEST 2009

Hi Conrad,

> The RSTRING() macro also checks for zeroes in the string, and throws the
> same error.

Hm. Looking at Ruby 1.8 header files (linux):

#define R_CAST(st)   (struct st*)
#define RSTRING(obj) (R_CAST(RString)(obj))

So RSTRING(x)->ptr should translate into ((struct RString*)(x))->ptr.

There's no checking for zeroes there...

How does the thing look like on your box?


More information about the zeromq-dev mailing list