Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 5:41
pprasanthk11-Aug-11 5:41 
GeneralRe: problem with process.waitforexit(timeout) Pin
Not Active11-Aug-11 5:58
mentorNot Active11-Aug-11 5:58 
GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 7:02
pprasanthk11-Aug-11 7:02 
GeneralRe: problem with process.waitforexit(timeout) Pin
Not Active11-Aug-11 7:32
mentorNot Active11-Aug-11 7:32 
GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 7:05
pprasanthk11-Aug-11 7:05 
GeneralRe: problem with process.waitforexit(timeout) PinPopular
Pete O'Hanlon11-Aug-11 7:20
mvePete O'Hanlon11-Aug-11 7:20 
GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 7:34
pprasanthk11-Aug-11 7:34 
GeneralRe: problem with process.waitforexit(timeout) Pin
thatraja11-Aug-11 7:43
professionalthatraja11-Aug-11 7:43 
D'Oh! | :doh: Man, you should have posted your code in code block like below.
C#
process = Process.Start(psi);
process.WaitForExit(executionTimeOutSecs * 1000); // convert seconds to milliseconds
if (!process.HasExited)
{
StringBuilder text = new StringBuilder();
text.AppendFormat("Having to kill {0}, executed longer than timeout value, {1} sec.", taskName,
executionTimeOutSecs);
if (logging)
{
log.writeLogFile(text.ToString());
}
log.writeEventLogWarning(text.ToString());
process.Kill();
process.WaitForExit(1000);
}
process.Close();

But you posted the same un-formatted code in new message which is ugly one & against the rule. BTW He suggested you the same in his message like what I did now.
thatraja

My Tip/Tricks
My Dad had a Heart Attack on this day so don't...

GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 7:45
pprasanthk11-Aug-11 7:45 
AnswerRe: problem with process.waitforexit(timeout) Pin
jschell11-Aug-11 13:09
jschell11-Aug-11 13:09 
GeneralRe: problem with process.waitforexit(timeout) Pin
pprasanthk11-Aug-11 17:57
pprasanthk11-Aug-11 17:57 
GeneralRe: problem with process.waitforexit(timeout) Pin
jschell12-Aug-11 7:54
jschell12-Aug-11 7:54 
Questionc# .net Pin
marimuthu01711-Aug-11 3:19
marimuthu01711-Aug-11 3:19 
AnswerRe: c# .net Pin
dan!sh 11-Aug-11 3:31
professional dan!sh 11-Aug-11 3:31 
AnswerRe: c# .net Pin
Member 815382311-Aug-11 3:42
Member 815382311-Aug-11 3:42 
AnswerRe: c# .net Pin
Eddy Vluggen11-Aug-11 6:21
professionalEddy Vluggen11-Aug-11 6:21 
QuestionPaging in CheckBoxList Pin
chinmaya00311-Aug-11 2:22
chinmaya00311-Aug-11 2:22 
AnswerRe: Paging in CheckBoxList Pin
Shameel11-Aug-11 2:43
professionalShameel11-Aug-11 2:43 
Questionhow to combine two dataset to one xml file Pin
goldsoft11-Aug-11 0:05
goldsoft11-Aug-11 0:05 
AnswerRe: how to combine two dataset to one xml file Pin
Wendelius11-Aug-11 10:41
mentorWendelius11-Aug-11 10:41 
QuestionNeed help with error checking for Dns.GetHostEntry Pin
turbosupramk310-Aug-11 8:59
turbosupramk310-Aug-11 8:59 
AnswerRe: Need help with error checking for Dns.GetHostEntry [modified] Pin
Shameel11-Aug-11 0:49
professionalShameel11-Aug-11 0:49 
GeneralRe: Need help with error checking for Dns.GetHostEntry Pin
turbosupramk311-Aug-11 3:27
turbosupramk311-Aug-11 3:27 
GeneralRe: Need help with error checking for Dns.GetHostEntry Pin
Shameel11-Aug-11 4:05
professionalShameel11-Aug-11 4:05 
GeneralRe: Need help with error checking for Dns.GetHostEntry Pin
turbosupramk311-Aug-11 4:52
turbosupramk311-Aug-11 4:52 

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.