Hello guys, :)
I'm tired of trying to learn how to start and delete a thread correctly without residuals or problems. I posted other problems with this program before, and to make the thing easier to solve, please download a copy of the source from the following link.
The program is a down-sampler. It simply reads a few blocks of a file, calculates the average, and writes the result. The purpose is simply making files smaller.
The problem is, that whenever the start button and stop are clicked a few times, the program freezes. This happens now in Linux, but I don't know if this happens in windows too. I think it does.
The program is compilable under windows and linux.
Please guide me to the method to fix this problem. I tried calling QThread::quit(), exit(), terminate() with a deleteLater()... but all cause problems... with no exception! please tell me how to do this correctly.
Thank you :-)