11-14-2006, 03:37 PM
If there are many threads of single function, I think they all should stop. If different functions, add similar code in each of them. Of course this cannot be added to functions that do not repeat. Other way - for each window use functions with unique names, and use shutdown. I don't know other ways (i don't say it is impossible, maybe you will find a better way).