Farsheed Ashouri wrote: > NO it dont work. If I remove threading part, it works like a charm. > Any Idea? Of course it does then. Try to join the thread or do something else to prevent the non-threading part to exit prematurely. HTH Thin