booksbyus / zguide

Learning and Using ØMQ
http://zguide.zeromq.org
Other
3.44k stars 1.65k forks source link

bug: send() image data with 1280*720 , the memory rises sharply #748

Open sumavision opened 6 years ago

sumavision commented 6 years ago

context_t cntt(); socket_t socket(cntt,ZMQ_PUB); socket.bind ("tcp://192.168.1.45:5074");

//then send image data : image is serialize string message_t sendMsgt(imag.size()); memcpy ((void *)sendMsgt.data(),msg.data(), msg.size()); bool ret = socket.send(sendMsgt);

the error is :
when i call the send() continued :
while(true){ socket.send(sendMsgt); } the momery rises sharply until killed

guidog commented 6 years ago

Then leave out the infinite loop. This is not even funny. Should be closed.