Below is my test code.I found clent applition memory leak.If I use QTcpSocket,the memory is normal.Is the problem the QT bug?
QLocalSocket ls;
ls.connectToServer("test");
int i = 0;
while (ls.waitForConnected())
{
QString message = QString::number(i) + "TTTTTTTTTT";
ls.write( message.toStdString().c_str(), message.length());
ls.flush();
ls.waitForBytesWritten();
Sleep(20);
i++;
}
Bookmarks