hi,
I'm currently trying to write a very very simple front-end for ffmpeg with
gtk#.
My Code looks like this:

First I check if a file already exits with File.Exits(path)
MessageDialog -> Overwrite YesNO.

Then the I start ffmpeg with Process.Start(). 
Then I want show a MessageDialog if the process finished so I did it like :

while(!proc.HasExited) {}
MessageDialog -> "Encoding finished";

This is working good but this causes some bugs. E.g: If I do Overwrite it
"yes". The MessageDialog isn't destroyed until the process finished. If I
delete this while {} it's working correct but the Message appears
immediately and not after the process hast Finished. Using if is also not
that good I suppose :/

Any solution? Thx in advance :)

-- 
View this message in context: 
http://www.nabble.com/Check-Process-state-in-an-GUI-app-tp14982013p14982013.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to