I have a C# program that is acting as a update checker/launcher for a Unity Project I made. Basically it checks for updates, if there is one it downloads it then launches the program, otherwise it just launches it. Everything about it works except for the one weird bug and I can't track it down.
Occasionally it will just completely close the process that I started, no error messages, no warning. It seems to be time based, but it isn't consistent across different computers. I want to eliminate the updater as a problem before I go digging into Unity, so is there any reason that windows would just close a child process like this?
The process is started like this:
process = new Process();
process.StartInfo.FileName = Path.Combine(s, "execute.exe");
process.Start();
process.WaitForExit();
Nothing fancy, but I don't know what else to be looking for here.
Thank you!