Hello,
I've got QThread sub-classed with run() re-implemented thus:
Qt Code:
  1. void Logger::run()
  2. {
  3. QTimer* timer = new QTimer();
  4. timer->setInterval(updateIntervalSeconds*1000);
  5. connect(timer, SIGNAL(timeout()), this, SLOT(doJob()));
  6. timer->start();
  7.  
  8. exec();
  9. timer->stop();
  10.  
  11. delete timer;
  12. return;
  13. }
To copy to clipboard, switch view to plain text mode 
where doJob() is a func that contains stuff to be done. The doJob() func gets called as excpected but when ending the thread I get a crash that points to the timer->stop(). Commenting that out the crash points at the delete timer; commenting that out, the crash points to run()s end brace.

I get a Qt message QThread object destroyed while thread is still running, but I call the quit() func before deleting the object. what's going on?

thanks
K