Click here to Skip to main content
15,921,989 members
Home / Discussions / C#
   

C#

 
GeneralRe: "dot" Pin
kabutar25-Oct-07 1:58
kabutar25-Oct-07 1:58 
GeneralRe: "dot" Pin
Christian Graus25-Oct-07 2:10
protectorChristian Graus25-Oct-07 2:10 
AnswerRe: "dot" Pin
azifaliazif25-Oct-07 2:31
azifaliazif25-Oct-07 2:31 
GeneralRe: "dot" Pin
sujithkumarsl25-Oct-07 2:48
sujithkumarsl25-Oct-07 2:48 
QuestionRe: "dot" Pin
wrzhi_200525-Oct-07 4:15
wrzhi_200525-Oct-07 4:15 
AnswerRe: "dot" Pin
sujithkumarsl25-Oct-07 4:25
sujithkumarsl25-Oct-07 4:25 
GeneralRe: "dot" Pin
wrzhi_200525-Oct-07 4:36
wrzhi_200525-Oct-07 4:36 
GeneralRe: "dot" Pin
sujithkumarsl25-Oct-07 5:02
sujithkumarsl25-Oct-07 5:02 
GeneralRe: "dot" Pin
new2pgrmg25-Oct-07 20:11
new2pgrmg25-Oct-07 20:11 
Questioncrystal report viewer using ms access in c# Pin
bhebhekoh25-Oct-07 0:38
bhebhekoh25-Oct-07 0:38 
AnswerRe: crystal report viewer using ms access in c# Pin
Paul Conrad27-Oct-07 12:30
professionalPaul Conrad27-Oct-07 12:30 
QuestionDynamically changing font font-style size and color of a label Pin
sindhutiwari25-Oct-07 0:31
sindhutiwari25-Oct-07 0:31 
AnswerRe: Dynamically changing font font-style size and color of a label Pin
Christian Graus25-Oct-07 0:37
protectorChristian Graus25-Oct-07 0:37 
GeneralRe: Dynamically changing font font-style size and color of a label Pin
sindhutiwari25-Oct-07 0:43
sindhutiwari25-Oct-07 0:43 
GeneralRe: Dynamically changing font font-style size and color of a label Pin
Christian Graus25-Oct-07 0:50
protectorChristian Graus25-Oct-07 0:50 
QuestionHow to get previous focused control? Pin
Tavbi25-Oct-07 0:22
Tavbi25-Oct-07 0:22 
AnswerRe: How to get previous focused control? Pin
Chintan.Desai25-Oct-07 1:59
Chintan.Desai25-Oct-07 1:59 
QuestionManaging Excel Sheets with C# Pin
dudedotnet25-Oct-07 0:11
dudedotnet25-Oct-07 0:11 
AnswerRe: Managing Excel Sheets with C# Pin
martin_hughes25-Oct-07 2:54
martin_hughes25-Oct-07 2:54 
QuestionCreating a word document using c# Pin
Fahim A Salim24-Oct-07 23:37
Fahim A Salim24-Oct-07 23:37 
AnswerRe: Creating a word document using c# Pin
Chintan.Desai25-Oct-07 2:03
Chintan.Desai25-Oct-07 2:03 
AnswerRe: Creating a word document using c# Pin
Paul Conrad27-Oct-07 12:32
professionalPaul Conrad27-Oct-07 12:32 
Question£ symbol in csv file for Excel - Encoding weirdness - HELP! Pin
Gizz24-Oct-07 23:27
Gizz24-Oct-07 23:27 
AnswerRe: £ symbol in csv file for Excel - Encoding weirdness - HELP! Pin
Guffa25-Oct-07 0:48
Guffa25-Oct-07 0:48 
Questionuse Process class on Mono? Pin
bug_aonz24-Oct-07 23:27
bug_aonz24-Oct-07 23:27 
I need to ping IP with linux commands "ping xxx.xxx.xxx.xxx" . and run it with Mono on Linux server.
Let's see my code...
Process P = new Process();
P.StartInfo.CreateNoWindow = true;
P.StartInfo.FileName = "ping";
P.StartInfo.RedirectStandardOutput = true;
P.StartInfo.Arguments = " 202.57.191.167";
P.Start();
P.WaitForExit();
string output = P.StandardOutput.ReadLine();
while (output != null && output!="")
{
    Console.WriteLine(output);
    output = P.StandardOutput.ReadLine();
    Thread.Sleep(500);
}
Console.ReadLine();


Then upload and run it,it throw exception...
 <br />
"Unhandled Exception: System.InvalidOperationException: UseShellExecute must be false when redirecting I/O.<br />
  at System.Diagnostics.Process.Start_shell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000]<br />
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000]<br />
  at System.Diagnostics.Process.Start () [0x00000]<br />
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()<br />
  at ProcessLinuxCommands.Program.Main (System.String[] args) [0x00000]"<br />


Could u help me what is this bug?
Does Mono implement the Process class?

thank =)

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.