I have application which loads images like this:
someImage = Image.FromFile(@"picture.png");
and another application which fires the previous one like this:
Process.Start(@"C:\dev\gallery.exe");
and if I do like this I get an Exception: “picture.png”, nothing more, but if I run this first gallery application normally using the icon or cmd then it works ok.
EDIT: I have just noticed that if I put these applications in the same folder then it works properly, why? what I can do then?
Looks like a working directory problem. Try using the
Process.Start(ProcessStartInfo)overload with theWorkingDirectoryproperty set properly.