andrew stewart <andrew.stewart@...> wrote... >It would be useful to have several event loops in one program, for example >when combining several different programs, each with its own event loop >into one. > >Am I missing something? Andrew, No, I don't think so but you do have to be careful. I use multiple event loops in some of my programs and run into problems like the following... Suppose I'm in a loop waiting, say, for the user to click 1 of several buttons and he decides to relegate my program to the background, say, by clicking in some other program's window. I process the deactivate event and when I get the reactivate event how do I successfully re-enter the proper loop. If they're both the same loop than I only have to maintain a state variable to tell where to resume processing. At any rate, these are the kinds of problems that can show up when you have more than 1 event loop. Charlie Dickman charlied@...