What happens is the process starts and brings up the peazip GUI for archiving the file. I think it is roughly about 2-3 minutes later when the peazip GUI closes out and I get the following message in the debugger: QProcess: Destroyed while process is still running.
Here is the code segment
bool MainWindow
::saveFile(const QString &fileName
) {
// file manipulation...
arguments << "-add2archive" << dir.path();
tar.start("peazip", arguments);
if(tar.waitForFinished())
tar.close();
// reset some toggle values and return true
}
bool MainWindow::saveFile(const QString &fileName)
{
// file manipulation...
QDir dir(directory);
QProcess tar(this);
QStringList arguments;
arguments << "-add2archive" << dir.path();
tar.start("peazip", arguments);
if(tar.waitForFinished())
tar.close();
// reset some toggle values and return true
}
To copy to clipboard, switch view to plain text mode
I am simply curious what would cause the peazip GUI to crash/close. Thanks for any help!
Bookmarks