Thanks for your quick response

I have a problem with starting the thread. start function is in my render() routine in my RenderThread class. I have tried to call render routine from various locations in my code, but all of them resulted in crashing right at the startup of my application.

I even added a timer event slot to my RenderThread class and call it when I construct the object of this class but got the same result, crashing about a second after the startup!
I have no idea why my app crashes like this!
you can see my code down here.

Qt Code:
  1. private slots:
  2. void timerEvent(QTimerEvent *event);
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. RenderThread::RenderThread(QObject *parent)
  2. : QThread(parent)
  3. {
  4. restart = false;
  5. abort = false;
  6.  
  7. startTimer(500);
  8. }
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. void RenderThread::timerEvent(QTimerEvent *event)
  2. {
  3. Q_UNUSED(event);
  4.  
  5. render();
  6. }
To copy to clipboard, switch view to plain text mode