I have written a windows application that kicks off another process and then Waitsforexit. I have one old crappy machine on which this works great and has been for months and in the last couple of months I've seen that on a newer faster machine that it doesn't seem to work reliably. Both are XP SP3 and the app utilizes Framework 2.0. Any ideas?
Code:
ProcessStartInto ps=new ProcessStartInfo();
ps.FileName=sFilename;
ps.Arguments=sArguments;
ps.WorkingDirectory=sWorkingDirectory;
p.EnableRaisingEvents=true;
p=Process.Start(ps);
try
{
p.WaitForExit();
TaskStopped(p);
p.Close();
}
catch (Exception ex)
{
//Log Error Message only
}
Comment