QWebsocket sendBinaryMessage memory leak
-
Qt version: 5. 12
OS: Windows 7 64
Using QWebsocket to communicate with remote server. Every time calling the member function sendBinaryMessage, the system memory occupied by the process raised. Really confused! Really need help! -
-
@jsulm as the pics above, I got a global object to handle websocket processing using singleton mode. Init the ws state in the construction func, and define a function (send(QByteArry &data))to communicate with remote ws server. In the send(QByteArry &data) function,there is only one line:m_websock.sendBinaryMessage(data).I call the send() function in every 10ms, then the memory of the processing just keep raising... Really confused!
-
@jsulm as the pics above, I got a global object to handle websocket processing using singleton mode. Init the ws state in the construction func, and define a function (send(QByteArry &data))to communicate with remote ws server. In the send(QByteArry &data) function,there is only one line:m_websock.sendBinaryMessage(data).I call the send() function in every 10ms, then the memory of the processing just keep raising... Really confused!
@Shelton said in QWebsocket sendBinaryMessage memory leak:
as the pics above
Please post code as text, not pictures.
From the code you posted I don't see why memory usage should grow. But this is not all relevant code. What is this data and how is it used?
-
@Shelton said in QWebsocket sendBinaryMessage memory leak:
as the pics above
Please post code as text, not pictures.
From the code you posted I don't see why memory usage should grow. But this is not all relevant code. What is this data and how is it used?
-
@Shelton said in QWebsocket sendBinaryMessage memory leak:
data caught by microphone, size 1280bytes, sending period every 10ms
Sorry, but this does not help. Without code I have no idea...
-
@Shelton said in QWebsocket sendBinaryMessage memory leak:
data caught by microphone, size 1280bytes, sending period every 10ms
Sorry, but this does not help. Without code I have no idea...
-
@Shelton said in QWebsocket sendBinaryMessage memory leak:
data caught by microphone, size 1280bytes, sending period every 10ms
Sorry, but this does not help. Without code I have no idea...

