Thanks for answering. Meanwhile I have created a bug: http://bugreports.qt.nokia.com/browse/QTBUG-6406
Regards Nik -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Marco Borm Gesendet: Dienstag, 1. Dezember 2009 20:27 An: [email protected] Betreff: Re: [Qt-wince-interest] emit signal results in Stackoverflow Maybe it isn't that simple: On Win32 the stack is typical 1MB large but has only 64KB on CE. So maybe the crash only occurs because the stack usage peak in the signal slot object combination you use exceeds this limit. Of course well designed code with embedded in mind shouldn't penetrate the stack with large objects, so if this is the case it should be fixed. Marco Niklaus Hersche wrote: > > Hi All > > After some more investigations, I found out, that the Stackoverflow > has nothing to do with signals/slots or threads. > > It seems to bee a bug in QProgressBar under WinCe 5 and Qt 4.5.2. > There is no problem under Win32! > > Regards > > Nik > > ------------------------------------------------------------------------ > > *Von:* [email protected] > [mailto:[email protected]] *Im Auftrag von > *Niklaus Hersche > *Gesendet:* Montag, 30. November 2009 18:26 > *An:* [email protected] > *Betreff:* [Qt-wince-interest] emit signal results in Stackoverflow > > Hi All > > I try to show the progress of the worker thraed with a QProgressDialog > and Signal/Slot mech. > > But it results in a stackoverflow! > > Does anybody know what’s wrong? > > int main(int argc, char *argv[]) > > { > > QApplication app(argc, argv); > > QProgressDialog dlg; > > ThreadX thread1; > > QObject::connect(&thread1, SIGNAL(progressValueChanged(int)), &dlg, > SLOT(setValue(int)), Qt::QueuedConnection); > > QObject::connect(&thread1, SIGNAL(progressRangeChanged(int,int)), > &dlg, SLOT(setRange(int,int)), Qt::QueuedConnection); > > QObject::connect(&thread1, SIGNAL(finished()), &dlg, SLOT(reset()), > Qt::QueuedConnection); > > dlg.show(); > > thread1.start(); > > dlg.exec(); > > thread1.wait(); > > } > > Thanks > > Nik > > ------------------------------------------------------------------------ > > _______________________________________________ > Qt-wince-interest mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-wince-interest > _______________________________________________ Qt-wince-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-wince-interest _______________________________________________ Qt-wince-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-wince-interest
