Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>One likely explanation for this error is that the process exited before you're attempting to write to it. I tried this with <code>/bin/date</code> and a legitimate <code>StartInfo.WorkingDirectory</code> and the assembly is <code>/Workspace/export/misc/H.exe</code>. This yields:</p> <pre><code>Unhandled Exception: System.IO.IOException: Write fault on path /Workspace/export/misc/[Unknown] at System.IO.FileStream.WriteInternal (System.Byte[] src, Int32 offset, Int32 count) [0x00097] in /Workspace/mono/mcs/class/corlib/System.IO/FileStream.cs:658 at System.IO.FileStream.Write (System.Byte[] array, Int32 offset, Int32 count) [0x000aa] in /Workspace/mono/mcs/class/corlib/System.IO/FileStream.cs:634 at System.IO.StreamWriter.FlushBytes () [0x00043] in /Workspace/mono/mcs/class/corlib/System.IO/StreamWriter.cs:222 at System.IO.StreamWriter.FlushCore () [0x00012] in /Workspace/mono/mcs/class/corlib/System.IO/StreamWriter.cs:203 at System.IO.StreamWriter.Write (System.Char[] buffer) [0x00022] in /Workspace/mono/mcs/class/corlib/System.IO/StreamWriter.cs:351 at System.IO.TextWriter.WriteLine () [0x00000] in /Workspace/mono/mcs/class/corlib/System.IO/TextWriter.cs:257 at X.Main () [0x00066] in /Workspace/export/misc/H.cs:17 </code></pre> <p>You are getting this every time when you're using an invalid directory in <code>process.StartInfo.WorkingDirectory</code>. There's nothing that can be done about that, though the error message should be made clearer.</p> <p>Your directory is invalid because of the quotation marks. You also should not concatenate path names the way you did as it makes your application non-portable to non-Unix operating systems. Instead, write it as:</p> <pre><code>var home = Environment.GetFolderPath (Environment.SpecialFolder.UserProfile); process.StartInfo.WorkingDirectory = Path.Combine (home, "pacotes", nome_pacote.Text+"-1.0"); </code></pre> <p>Using <code>Environment.GetFolderPath()</code> makes it easier to run your application on a Mac (where home directories are in <code>/Users/&lt;username&gt;</code> instead of <code>/home/&lt;username&gt;</code>).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload