|
|
The thread is started in main() (MainWindow::start()), and the statusBar is
updated if the process cannot be executed. However, I commented the line
that updates the statusBar, but the segmentration fault still occurs.
Marius
"Dimitri" <dimitri@xxxxxxxxxxxxx> wrote in message
news:41BB08A4.5030000@xxxxxxxxxxxxxxxx
> Hi,
>
> >>>void MainWindow::run()
> >>>{
> >>> while(!quit) {
> >>> sleep(MAIN_LOOP_SLEEP);
> >>> if (!statusProcess->isRunning()) {
> >>> if (!statusProcess->start()) {
> >>> statusBar()->message("Unable to execute command");
> >>> [...]
> >>>I have ran the program in gdb, which gives this output:
> >>> [...]
> >>>0x402ca59e in QProcess::start () from /usr/lib/libqt.so.3
> >>>(gdb) bt
> >>>#0 0x402ca59e in QProcess::start () from /usr/lib/libqt.so.3
> >>>#1 0x08057bd1 in MainWindow::run (this=0xbffff080) at
> >
> > main_window.cpp:515
> >
> >>>#2 0x40cb0855 in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
>
> You're calling MainWindow::run() and accessing the GUI from outside the
> GUI event loop, arent't you?
>
> --
> Dimitri
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|