I'm trying to compile a Qt 4 Application which contains the call of QProcess.
It's no problem to compile it as Release-Version, but I always get a SegmentionFault-Error when i execute the Debug-Version.
My Qt version is 4.8.2 and i tried it on Fedora and Debian OS.
Does anyone of you ever had similar problems? I can't figure it out!
#include <QApplication>
#include "mainwindow.h"
#include <QProcess>
class MyApplication : public QApplication{
public:
QProcess * proc;
MyApplication(int argc, char** argv) : QApplication(argc, argv){
proc = new QProcess();
}
};
int main(int argc, char *argv[])
{
MyApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
Have a nice day, Markus