I have an Azure Worker Role that spawns another process (System.Diagnostics.Process) for executing an *.exe file in the Virtual Machine.
The problem is that this execution fails after a few minutes without any Exception.
I tried to log in to the Virtual Machine and start the executable file from the command line and it works fine.
The executable file is a Fortran program that allocates all the memory that is going to use at the start of its execution.
Here is the code that starts the process:
Process p = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo(strPath, strArguments);
startInfo.WorkingDirectory = strDir;
p.StartInfo = startInfo;
p.Start();
p.WaitForExit();
The program starts, does some work and ends unexpectedly. Any ideas on what may be killing this process?