xtreme
15th July 2008, 15:41
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:
void MainWindow::ViewDirReadStandardOutput()
{
qDebug() << ls->readLine() << ls->size();
if(ls->size() > 0){
ViewDirReadStandardOutput();
}
}
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
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:
void MainWindow::ViewDirReadStandardOutput()
{
qDebug() << ls->readLine() << ls->size();
if(ls->size() > 0){
ViewDirReadStandardOutput();
}
}
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