[Mono-dev] WaitForExit and File Associations

Gavin Landon Gavin.Landon at ignitetech.com
Wed Dec 12 09:39:22 EST 2007

I'll assume since no one responded that no one uses this API so I'll
submit it as a bug.

From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Gavin
Sent: Tuesday, December 11, 2007 9:48 AM
To: mono-devel-list at lists.ximian.com
Subject: [Mono-dev] WaitForExit and File Associations

Before I report as a bug, I thought I would ask and see if anyone else
has seen this.   

I'm using the following code and I've found out a few things.. 

System.Diagnostics.Process proc = new System.Diagnostics.Process(); 
proc.StartInfo.FileName = sFile; 
proc.StartInfo.Arguments = sParm; 
proc.StartInfo.UseShellExecute = true; 
proc.StartInfo.RedirectStandardOutput = false; 

1. On Linux and OSX the WaitforExit doesn't work nor error, but on
Windows it waits till I close UltraEdit before continuing.

2. On OSX file association for instances passing
"/users/gavin/Desktop/notepad.txt" as the sFile never does anything, but
on SUSE and Windows it launches the right application to view the txt
file.   Yes, the file is there on the Mac, I'm using a messagebox to
show me what file it's about to execute before it executes it.  Yes,
when I double click the notepad.txt it launches in TextEdit.

Is this a bug or am I doing something wrong? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071212/2233b44f/attachment.html 

More information about the Mono-devel-list mailing list