[zeromq-dev] OUT OF MEMORY on Win using inproc transport

Serg Gulko s.gulko at gmail.com
Thu Jan 19 01:07:22 CET 2012


Hello!

Thanks for hint, I really was using HWM incorrectly. I changed it according
spec but problem is still here.

http://pastebin.com/tDFpbhM0


But when I commented any operations on subscriber part(lines 68, 69, 70 and
71) everything working without problems.

Serg
On Wed, Jan 18, 2012 at 3:46 PM, Chuck Remes <cremes.devlist at mac.com> wrote:

>
> On Jan 18, 2012, at 2:32 PM, Serg Gulko wrote:
>
> > Yes, in this example I using constant size message(22 bytes) - I want
> keep only one 22 bytes message.
> > Or I wrong?
>
> You are wrong. For HWM, you pass the *number of messages*. What your code
> does is pass the *number of bytes*. That is incorrect.
>
> Change it to set the HWM to 1. There are lots of C code examples in the
> guide. Refer to one of those examples for the exact syntax.
>
> cr
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120118/e335bff3/attachment.htm>


More information about the zeromq-dev mailing list