Click to See Complete Forum and Search --> : Method to report if a process exits.


nadz
June 27th, 2006, 11:07 AM
hey guys,
help me out please,
My program calls a windows program say windows media player.
I start it and give the process a name so i know the name of
process and can stop it any time. But.. I want that when user
exits the windows media player, should the next statement of program run.
I tried using ->hasExited method and made the whole program sleep as windows media player once running is independent of it , only when it exit
should the program wake up again. But if I make it sleep it crashes and does not respond. Is there any thing like do nothing and wait. I have also
tried ->Responding but still not much output.
I ll try to register my program thread and then make it sleep but do not know it will work or not. Anybody has a better idea.
The problem looks very simple but the solution is tricky.
Please help me out.
cheers,
nadz