> too. So, the subVI stops. I suppose this happens this way because the > "X" event is waiting in the event queue until the next execution of > the subVI, so I would like to know if there's any way to empty the > event queue when the subVI starts executing. >
If you are using dynamic registration, I think you can unregister and register for the events, but another solution is to add a bit of state information. The close event will still arrive, but you will know that you are supposed to ignore it, and can return Discard as TRUE. Greg McKaskle