[Qt-interest] problem with qprocess

mierdatutis mi mmm286 at gmail.com
Fri Jul 24 22:57:41 CEST 2009


Hi,

I'm doing a qt program that execute 3 qprocess associated with three
shell-scripts sequentially. Every time that one qprocess is executed, I show
a progressbar with its progress.

The last qprocess execute it when the previos qprocess is executed, and to
do this I execute the qprocess in the slot finished of the qprocess
previous:


void MainWindowImpl::finalizado(int, QProcess::ExitStatus )
{
progress->setRange(0,100);
progress->setValue(0);
progress->show();
proc4->start("/home/david/pruebas/grabadas/cc.sh", QStringList() );
}

But this script doesn't do nothing. I try to debug and it says me:

p, li { white-space: pre-wrap; } Symbol this is a variable with complex or
multiple locations (DWARF2), length 4.
(gdb)
(gdb)
Cannot access memory at address 0x41
p, li { white-space: pre-wrap; } MainWindowImpl::qt_metacall
(this=0xbf831920, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf83120[image:
8)] at build/moc_mainwindowimpl.cpp:81
Scope for 81:
Symbol this is a variable with complex or multiple locations (DWARF2),
length 4.
Symbol _c is a variable with complex or multiple locations (DWARF2), length
4.
Symbol _id is a variable with complex or multiple locations (DWARF2), length
4.
Symbol _a is a variable with complex or multiple locations (DWARF2), length
4.
p, li { white-space: pre-wrap; } (gdb)
(gdb)
Cannot access memory at address 0x41
(gdb)
Cannot access memory at address 0x41
0xb7475ca8 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
(gdb)
Single stepping until exit from function
_ZN11QMetaObject8activateEP7QObjectiiPPv,
which has no line number information.
0xb7476932 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
(gdb)
Single stepping until exit from function
_ZN11QMetaObject8activateEP7QObjectPKS_iPPv,
which has no line number information.
0xb73fc5f9 in QProcess::finished () from /usr/lib/libQtCore.so.4
(gdb)
Single stepping until exit from function
_ZN8QProcess8finishedEiNS_10ExitStatusE,
which has no line number information.
0xb74029f4 in ?? () from /usr/lib/libQtCore.so.4
(gdb)
(gdb)
Cannot find bounds of current function
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090724/5f27faa7/attachment.html 


More information about the Qt-interest-old mailing list