waitforexit and hyperthreading

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.
 
Back
Top