[Mono-list] Starting processes with parameters from Mono 0.31 and mono-0.31.99.20040331

Ivan Gužvinec ivan.guzvinec@telemach.net
Sun, 04 Apr 2004 19:06:26 +0200


--=-RQBQq3KXz1tMVQUBCGEm
Content-Type: multipart/alternative; boundary="=-i9iPg+NsT1EGuSP7VPfs"


--=-i9iPg+NsT1EGuSP7VPfs
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

I stumbled upon then same problem in my project after upgrading to Mono
0.31.
The workaround with "UseShellExecute =3D false" works, but I have noticed
a considerable performance penalty. So I wonder:
1. Is the fact that arguments are not used without UseShellExecute a bug
in Mono 0.31 release?
2. Is using UseShellExecute =3D false slower in comparison to
UseShellExecute =3D true?

Thanks,
Ivan

On Thu, 2004-04-01 at 15:36, Vadim B. Guzev wrote:

> Hello!
>=20
>=20
> I've seen somewhere in the list before (but I can't find this letter now,
> when I really need it :( ) that someone had problems with starting proces=
ses
> with parameters from Mono 0.31. Was this problem solved?
>=20
> I have the same problem now, as even the following simple application
> doesn't work anymore in Mono 0.31 (it worked correctly in Mono 0.29):
> 8<----------------------------------------------------------
> using System;
> using System.Diagnostics;
>=20
> class ProcessStart {
>  static void Main(string[] args) {
>   Console.Out.WriteLine("Trying to start: 'mono --version'");
>   ProcessStartInfo psi =3D new ProcessStartInfo();
>   psi.FileName =3D "mono";
>   psi.Arguments =3D "--version";
>=20
>   Process p =3D new Process();
>   p.Start( psi );
>  }
> }
>=20
> 8<----------------------------------------------------------
>=20
> Instead of printing the version - it prints now the help for parameters
> usage...
> I've checked and the specified parameters ("--version") are not passed to
> the target program ("mono") at all... Is there any workaround for this
> problem?
>=20
> I've tried the daily package mono-0.31.99.20040331.tar.gz, but it seems t=
o
> me, that method Process.Start doesn't work at all in this version ... eve=
n
> without parameters... :(
> What's happening?
>=20
>=20
> Best regards,
> Vadim B. Guzev
>=20
>=20
>=20
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>=20

--=-i9iPg+NsT1EGuSP7VPfs
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; CHARSET=3DUTF-8">
  <META NAME=3D"GENERATOR" CONTENT=3D"GtkHTML/3.0.9">
</HEAD>
<BODY>
Hi,<BR>
<BR>
I stumbled upon then same problem in my project after upgrading to Mono 0.3=
1.<BR>
The workaround with &quot;UseShellExecute =3D false&quot; works, but I have=
 noticed a considerable performance penalty. So I wonder:<BR>
1. Is the fact that arguments are not used without UseShellExecute a bug in=
 Mono 0.31 release?<BR>
2. Is using UseShellExecute =3D false slower in comparison to UseShellExecu=
te =3D true?<BR>
<BR>
Thanks,<BR>
Ivan<BR>
<BR>
On Thu, 2004-04-01 at 15:36, Vadim B. Guzev wrote:
<BLOCKQUOTE TYPE=3DCITE>
<PRE><FONT COLOR=3D"#737373"><I>Hello!


I've seen somewhere in the list before (but I can't find this letter now,
when I really need it :( ) that someone had problems with starting processe=
s
with parameters from Mono 0.31. Was this problem solved?

I have the same problem now, as even the following simple application
doesn't work anymore in Mono 0.31 (it worked correctly in Mono 0.29):
8&lt;----------------------------------------------------------
using System;
using System.Diagnostics;

class ProcessStart {
 static void Main(string[] args) {
  Console.Out.WriteLine(&quot;Trying to start: 'mono --version'&quot;);
  ProcessStartInfo psi =3D new ProcessStartInfo();
  psi.FileName =3D &quot;mono&quot;;
  psi.Arguments =3D &quot;--version&quot;;

  Process p =3D new Process();
  p.Start( psi );
 }
}

8&lt;----------------------------------------------------------

Instead of printing the version - it prints now the help for parameters
usage...
I've checked and the specified parameters (&quot;--version&quot;) are not p=
assed to
the target program (&quot;mono&quot;) at all... Is there any workaround for=
 this
problem?

I've tried the daily package mono-0.31.99.20040331.tar.gz, but it seems to
me, that method Process.Start doesn't work at all in this version ... even
without parameters... :(
What's happening?


Best regards,
Vadim B. Guzev



_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com</FONT>
<A HREF=3D"http://lists.ximian.com/mailman/listinfo/mono-list"><U>http://li=
sts.ximian.com/mailman/listinfo/mono-list</U></A>
<FONT COLOR=3D"#737373"></I></FONT></PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-i9iPg+NsT1EGuSP7VPfs--

--=-RQBQq3KXz1tMVQUBCGEm
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iQCVAwUAQHBAksj+Az87AOMpAQK7QQP+LcKm70bIf1KRJI5oBo3tK5rjn6C6eudk
QENGZMq9gC/MV8l8JSyt/pMe7FFHf2YLIVqAChWe96viCNo6r6ch7I1jdmzplwv9
MSj8KPdXy1VV7mL0XKSnC0T+WKRV8lpS4ugPQ0GPyorDD8rBIl2cDBbBHYrAsV36
FH1GA7WydG8=
=5Pk1
-----END PGP SIGNATURE-----

--=-RQBQq3KXz1tMVQUBCGEm--