|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
waitforexit and hyperthreadingapplication : ..... Process p = new Process(); p.StartInfo.FileName = "C:\\Programmi\\OpenOffice.org 2.\\program\\soffice.exe"; p.StartInfo.Arguments = "C:\\H\\TMP\\sql-20070410.log"; p.Start(); /* */ p.WaitForExit(); ...... case 1: In a traditional PC using the command WaitForexit the Process p wait the soffice.exe to be closed before continue. case 2: With the same fragment of code, runned on a pc with hyperthreading enabled the waitforexit function doesn't wait for soffice to be closed before continue. I would want that the software had on the PC of case 2 the same behavior of that one executed in the PC of case 1. Thanks. Do you have the same behavior wiht something such as calc.exe ?
"nemesistime" <nemesist***@discussions.microsoft.com> a écrit dans le message de news: E6D65811-4851-4E81-8687-274AB6C45***@microsoft.com...Show quote >I am using the following fragment of code in the main of a console > application : > > .... > Process p = new Process(); > p.StartInfo.FileName = "C:\\Programmi\\OpenOffice.org > 2.\\program\\soffice.exe"; > p.StartInfo.Arguments = "C:\\H\\TMP\\sql-20070410.log"; > p.Start(); > /* > > */ > p.WaitForExit(); > ..... > > case 1: > In a traditional PC using the command WaitForexit the Process p wait the > soffice.exe to be closed before continue. > > case 2: > With the same fragment of code, runned on a pc with hyperthreading enabled > the waitforexit function doesn't wait for soffice to be closed before > continue. > > > > I would want that the software had on the PC of case 2 the same behavior > of > that one executed in the PC of case 1. > > > Thanks. No. With "calc" and "notepad" it just work in the correct way.
Show quote > Do you have the same behavior wiht something such as calc.exe ? Are you sure the process is launched ? I would check for example exit code
and other usefull properties to check if it couldn't be that the process ends as soon as it is started (for example because the argument file is not correct or the account doesn't have a read permission on it etc...) AFAIK you should be also able to disable hyperthreading just to see if this is really related to HT or if it could be some other difference... Good luck. --- Patrice "nemesistime" <nemesist***@discussions.microsoft.com> a écrit dans le message de news: D36B65AE-9026-485B-B34F-05AF0715C***@microsoft.com...Show quote > > No. With "calc" and "notepad" it just work in the correct way. > > >> Do you have the same behavior wiht something such as calc.exe ? > > |
|||||||||||||||||||||||