1
Vote

ProcessWrap does not assign StartInfo

description

Using the following code throws an exception that the FileName has not been set for the process:


ProcessStartInfoWrap info = new ProcessStartInfoWrap();
info.FileName = "explorer.exe";

IProcessWrap process = new ProcessWrap();
process.StartInfo = info;
process.Start();

The problem is, that StartInfo is only assigned to the processWrap, but never to the actual ProcessInstance.
So adding this little code should help when setting the StartInfo:

ProcessInstance.StartInfo = startInfo.ProcessStartInfoInstance;

comments