PDA

View Full Version : My QThread dies



Althor
10th November 2008, 13:52
Hi, I have a problem with QThread class. I have a class which has a static member which is a QThread subclass object.

The run method of this member consists of a forever loop, in which I use a serial port. The problem is that after a lot of iterations, random, it dies and I get the following message: Destoyed while thread is still running. It never dies at the first iteration.

What could be the cause?

Regards.

caduel
10th November 2008, 14:08
a static member?
... should be destroyed when the lib is unloaded or when the program finishes.

Maybe strip your example down to a small (minimal?) example and give us some code to look at / toy with.

HTH