[zeromq-dev] exception thrown on socket recieve function call in c# interop bindings

David Starkweather starkd88 at gmail.com
Fri Feb 10 23:38:27 CET 2012


I think I just found a solution to this.  Had to put a pause right before
recieving.

System.Thread.Sleep(1000);

right before:

skt.Receive(out resp, false);

thanks again.
dgs.
On Fri, Feb 10, 2012 at 5:02 PM, David Starkweather <starkd88 at gmail.com>wrote:

>
> I'm using the latest version of libzmq.dll   2.1.11 .  Same with
> thebindings, the version that's currently up (0.8.34).
>
> I didn't know about Buffer.BlockCopy(). I will switch it. What is so evil
> about pinned GCHandle ? I dont really know anything about it,  just the
> first thing i found that could do the job.
>
> I thought I was using blocking sends.  the variable in the parameter for
> the Socket.Send() function calls is "non-blocking", meaning true for
> non-blocking, false if you want it to block.  I've tried both values
> without much diffferent.   But I realize they should be set to false.
>
> thanks again.
> dgs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120210/9e77dbc3/attachment.htm>


More information about the zeromq-dev mailing list