I have the following code:
var psi = new ProcessStartInfo();
psi.FileName = @"C:\gw\gw.exe";
psi.WorkingDirectory=@"C:\gw";
Process process = Process.Start(psi);
For some reason, the gw.exe process is crashing on startup. Windows just says "This program has been shut down" and has the usual "Looking for a solution online" box and it just crashes.
When I launch gw.exe from Windows explorer, it executes just fine. It is a WPF application and it runs just fine outside of my program. Anyone have any suggestions?