Process.Start() Problems
-
Hey, I'm having some problems starting a command-line program using Process.Start(). I pass it the filename and arguments, and it runs the program, but instantly crashes and a "Program has stopped working" error comes up. I can't figure out what is wrong. The program runs fine from the command line and when I use a shortcut, and Process.Start() runs other programs fine. Can anyone tell me what is wrong? For reference, I am running this in Vista.
-
Hey, I'm having some problems starting a command-line program using Process.Start(). I pass it the filename and arguments, and it runs the program, but instantly crashes and a "Program has stopped working" error comes up. I can't figure out what is wrong. The program runs fine from the command line and when I use a shortcut, and Process.Start() runs other programs fine. Can anyone tell me what is wrong? For reference, I am running this in Vista.
As per my experience you have problem in passing arguments. Try without argument passing, and change the way to pass arguments. Hope you will find solution. I have tried to give hint to your problem.
Best Regards, Chetan Patel
-
Hey, I'm having some problems starting a command-line program using Process.Start(). I pass it the filename and arguments, and it runs the program, but instantly crashes and a "Program has stopped working" error comes up. I can't figure out what is wrong. The program runs fine from the command line and when I use a shortcut, and Process.Start() runs other programs fine. Can anyone tell me what is wrong? For reference, I am running this in Vista.
Well classical problems like this are solved by using unmanaged code equivilant to the
System.Diagnostics
namespace from the win32 api. (Hint: search MSDN) Hope this helps!!;)To follow the path, Walk with the MASTER, See through the MASTER, Be the MASTER!