So I have no idea why my app is crashing if I try to delete my QProcess object:
connect(proc, SIGNAL(finished(int)), this, SLOT(appIsLoaded()));
connect(proc, SIGNAL(finished(int)), this, SLOT(deleteLater())); //without it works fine, no errors
connect(proc, SIGNAL(finished(int)), this, SLOT(appIsLoaded()));
connect(proc, SIGNAL(finished(int)), this, SLOT(deleteLater())); //without it works fine, no errors
proc->start("/myapp", QStringList() << parameter);
To copy to clipboard, switch view to plain text mode
It happens when I run process by start() If I use startDetached() I can delete QProcess object without any error... I've checked if I'm deleting something twice, and I'm not. QProcess object is the only thing I'm deleting.
thanks in advance
best regards
Tomasz
Bookmarks