Thanks for the response. However, I think it's the problem that threading doesn't work. Even if I remove everything in the thread and simply but a static variable change in the thread. It's not executed either. A bit wierd....