Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
QuestionDate.Subtract is calculating incorrectly Pin
indian14329-Nov-11 8:24
indian14329-Nov-11 8:24 
AnswerRe: Date.Subtract is calculating incorrectly Pin
OriginalGriff29-Nov-11 8:44
mveOriginalGriff29-Nov-11 8:44 
GeneralRe: Date.Subtract is calculating incorrectly Pin
Luc Pattyn29-Nov-11 14:35
sitebuilderLuc Pattyn29-Nov-11 14:35 
AnswerRe: Date.Subtract is calculating incorrectly Pin
Ian Shlasko29-Nov-11 10:11
Ian Shlasko29-Nov-11 10:11 
AnswerRe: Date.Subtract is calculating incorrectly Pin
jschell30-Nov-11 10:21
jschell30-Nov-11 10:21 
QuestionC# Execution of Java program Pin
Jerry W. Manweiler, Ph.D.29-Nov-11 7:11
Jerry W. Manweiler, Ph.D.29-Nov-11 7:11 
SuggestionRe: C# Execution of Java program Pin
RaviRanjanKr29-Nov-11 8:30
professionalRaviRanjanKr29-Nov-11 8:30 
AnswerRe: C# Execution of Java program Pin
Not Active29-Nov-11 8:42
mentorNot Active29-Nov-11 8:42 
The process is not exiting without any information, you are just not capturing it.

I'm not sure what version you are using but the Process class doesn't have a static Start method, or one that returns a Process object that I can find.

C#
using(Process p = new Process())
{
  try
  {   
    p.StartInfo = psi;
    if(p.Start())
    {
       p.WaitForExit();
    }
    else
    {
      // Process did not start
    }
  }
  catch(Exception ex)
  {
    // p.ExitCode
  }
}


Also note the use of pre tags to format code snippets when posted.

No comment


modified 29-Nov-11 14:49pm.

QuestionRe: C# Execution of Java program Pin
Jerry W. Manweiler, Ph.D.29-Nov-11 9:59
Jerry W. Manweiler, Ph.D.29-Nov-11 9:59 
AnswerRe: C# Execution of Java program Pin
Not Active29-Nov-11 10:05
mentorNot Active29-Nov-11 10:05 
GeneralRe: C# Execution of Java program Pin
Jerry W. Manweiler, Ph.D.29-Nov-11 10:06
Jerry W. Manweiler, Ph.D.29-Nov-11 10:06 
GeneralRe: C# Execution of Java program Pin
Not Active29-Nov-11 10:30
mentorNot Active29-Nov-11 10:30 
GeneralRe: C# Execution of Java program Pin
Jerry W. Manweiler, Ph.D.29-Nov-11 10:32
Jerry W. Manweiler, Ph.D.29-Nov-11 10:32 
AnswerRe: C# Execution of Java program Pin
Alan Balkany2-Dec-11 8:51
Alan Balkany2-Dec-11 8:51 
AnswerRe: C# Execution of Java program Pin
jschell29-Nov-11 10:57
jschell29-Nov-11 10:57 
GeneralRe: C# Execution of Java program Pin
Jerry W. Manweiler, Ph.D.29-Nov-11 11:40
Jerry W. Manweiler, Ph.D.29-Nov-11 11:40 
GeneralRe: C# Execution of Java program Pin
Richard Andrew x6429-Nov-11 14:16
professionalRichard Andrew x6429-Nov-11 14:16 
GeneralRe: C# Execution of Java program Pin
Richard Andrew x6429-Nov-11 14:24
professionalRichard Andrew x6429-Nov-11 14:24 
GeneralRe: C# Execution of Java program Pin
Pete O'Hanlon30-Nov-11 0:27
mvePete O'Hanlon30-Nov-11 0:27 
GeneralRe: C# Execution of Java program Pin
jschell30-Nov-11 10:13
jschell30-Nov-11 10:13 
QuestionLinq To Sql - Update Hierarchical Data Pin
Kevin Marois29-Nov-11 7:01
professionalKevin Marois29-Nov-11 7:01 
AnswerRe: Linq To Sql - Update Hierarchical Data Pin
Not Active29-Nov-11 8:31
mentorNot Active29-Nov-11 8:31 
QuestionChecking or Unchecking Based on Some Value Pin
AmbiguousName28-Nov-11 20:28
AmbiguousName28-Nov-11 20:28 
AnswerRe: Checking or Unchecking Based on Some Value Pin
Wayne Gaylard28-Nov-11 20:48
professionalWayne Gaylard28-Nov-11 20:48 
GeneralRe: Checking or Unchecking Based on Some Value Pin
DaveyM6928-Nov-11 21:35
professionalDaveyM6928-Nov-11 21:35 

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.