Results 1 to 5 of 5

Thread: Qprocess buffer to small?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Posts
    7
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Qprocess buffer to small?

    Hello,
    I am trying to get a list of information from a program to my qt-program.
    When receiving small amounts of data, there is no problem.
    However when im receiving 500,000 bytes of tekst-information it crashes. I cannot find a single way to prevent this.
    I am trying to buffer by using the following function:
    Qt Code:
    1. void MainWindow::ViewDirReadStandardOutput()
    2. {
    3. qDebug() << ls->readLine() << ls->size();
    4. if(ls->size() > 0){
    5. ViewDirReadStandardOutput();
    6. }
    7. }
    To copy to clipboard, switch view to plain text mode 
    I am using qDebug to see how far the program gets, this would be replaced by a QStringlist when working.
    Could anybody help me with this?

    -Xtreme
    Last edited by wysota; 15th July 2008 at 15:13. Reason: missing [code] tags

Similar Threads

  1. Detect First QProcess finished in a group and kill other
    By Davidaino in forum Qt Programming
    Replies: 3
    Last Post: 11th July 2008, 12:53
  2. QProcess and Pipes
    By KaptainKarl in forum Qt Programming
    Replies: 1
    Last Post: 9th April 2007, 23:11
  3. QProcess extremely slow on Windows?
    By Pepe in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2007, 00:25
  4. QProcess / system call not working under linux. Why?
    By johnny_sparx in forum Qt Programming
    Replies: 12
    Last Post: 11th March 2006, 00:32

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
  •  
Qt is a trademark of The Qt Company.