in reply to multiple infinitive loops

I need it because I have 2 infinitive loops with each a event handler in it, and both of them must act when an event is received.
The obvious solution (to me at least) would be to use only one event loop. This might be a problem if you have 2 toolkits with a fixed eventloop implementation, but I think most systems let you have your own code in the loop/write your own event loop. (I know Tk does)

Joost.

Replies are listed 'Best First'.
Re^2: multiple infinitive loops
by ozkaa (Acolyte) on Oct 06, 2004 at 16:45 UTC
    the eventloop is from win32::ole

    it uses the WbemScripting.SWbemLocator for looking at incoming processes, when a process is recevied it goes back into it's loop.

    It seems to be stuck at that specific event handler :(

    when it reaches the ExecNotificationQuery->NextEvent(); it goes into a loop of its own and nothing is possible afterwards until I break out of it, which I don't want to because its an ongoing process

    Oscar