Osvaldo,
When you create a new EXE to run, it does not run in a new thread.
Rather, it runs in a new process. When the EXE is done executing, the
process is done, not the thread that created the new process.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard. caspershouse.co m
"Osvaldo Bisignano" <va************ *@yahoo.com.ar> wrote in message
news:uH******** ******@tk2msftn gp13.phx.gbl...
When I press a button, I start a new Exe file as a new Thread.
When the mainform of that exe closes, i thought the thread was over.
When and How shoud i terminate the subprocess?