Open sumavision opened 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
Then leave out the infinite loop. This is not even funny. Should be closed.
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