Process.Start concatenating cmd line from previous invocation

Posted by Ralph on Stack Overflow See other posts from Stack Overflow or by Ralph
Published on 2010-03-29T12:30:05Z Indexed on 2010/03/29 12:33 UTC
Read the original article Hit count: 588

Filed under:

Hi,

I am using a Process.Start in .Net 2.0 to start a child win32 app.

Process.start ( "SomeProcess.exe", "<Cmd line>" );

The process runs fine but and the user then closes this window. However if I then run the same process again in the same session, the cmd line recieved by the called process is now a concatentation of the previous call. I.e SomeProcess.exe recieves the cmd line " SomeProcess.exe ".

Has anyone else seen this behaviour before?

Any help much appreciated.

Ralph.

© Stack Overflow or respective owner

Related posts about c#2.0