QTimer crashes my application
Dieter Landolt
dieter.landolt at secs.ch
Sun Jun 30 12:26:58 BST 2002
H
Try follow.
Declare your Timer in your headre File.
Create the Timer in the constructor of your class.
--- x.h
...
public:
QTimer *counter;
...
--- x.h
It can be that yout timer try to exist over the livetime of an obect in witch
its declared, then the ponter gous to a udefined area.
On Wednesday 26 June 2002 01:25, you wrote:
> hiii everybody
>
> i want to keep track of a running process so i used a QTimer object and
> connected its timeout signal to a slot that will detect a specefic running
>
> process and that was the code:
>
> QTimer * counter = new QTimer( this );
>
> connect( counter, SIGNAL(timeout()),
>
> this, SLOT(scansnort()) );
>
> counter->start( 10000 );
>
> the application crashs after a certain period this period decreases
> whenincreasing the timer timout (10000) here
>
> and this is the crash error message :
>
> KCrash: crashing.... crashRecursionCounter = 2KCrash: Application Name =
> first1 path = <unknown> pid = 6172QDir::readDirEntries: Cannot read the
> directory: /root/.kde/share/iconsQDir::readDirEntries: Cannot read the
> directory: /usr/share/iconsCouldn't open /usr/share/config/kdebug.areas
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list