Results 1 to 3 of 3

Thread: About QLocalSocket problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2014
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Cool About QLocalSocket problem

    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++;
    }
    Last edited by wojiaoguowei; 6th August 2015 at 08:56.

Similar Threads

  1. QtService and QLocalSocket
    By matteo.ceruti in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2014, 18:45
  2. emit error for QLocalSocket
    By raj_iv in forum Qt Programming
    Replies: 2
    Last Post: 31st August 2011, 11:14
  3. QLocalSocket Synchronicity
    By matic in forum Qt Programming
    Replies: 0
    Last Post: 25th March 2010, 12:04
  4. Using QLocalServer and QLocalSocket
    By danc81 in forum Qt Programming
    Replies: 0
    Last Post: 10th November 2009, 12:09
  5. IPC with QLocalServer/QLocalSocket
    By ManuMies in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2009, 20:09

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.