[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pnet-developers] Spawning a process doesn't work
From: |
Rhys Weatherley |
Subject: |
Re: [Pnet-developers] Spawning a process doesn't work |
Date: |
Mon, 22 Dec 2003 08:03:50 +1000 |
User-agent: |
KMail/1.4.3 |
On Sunday 21 December 2003 01:52 am, Bruno Haible wrote:
> Using pnet-0.6.0 on Linux.
>
> Spawning a subprocess fails.
>[...]
> $ cscc -winforms hello.cs -o hello.exe
> $ ilrun hello.exe
> Uncaught exception: System.InvalidOperationException: Es trat eine
> unerlaubte Operation auf at System.Diagnostics.Process.Start() in
> ./Diagnostics/Process.cs at Hello.Main()
Microsoft's engine does the same thing:
Unhandled Exception: System.InvalidOperationException: The Process object must
have the UseShellExecute property set to false in order to redirect IO
streams.
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo
startInfo)
at System.Diagnostics.Process.Start()
at Hello.Main()
By default, the StartInfo object has the "UseShellExecute" property set to
true, and you must explicitly unset it to redirect stdin, stdout, or stderr.
Cheers,
Rhys.