OutputDataReceivedとWaitForExit

引数付きのWaitForExitは,非同期イベント処理が完了していなくてもtrueを返して,抜けるときがあるので要注意. http://msdn.microsoft.com/ja-jp/library/ty0d8k56.aspx

確実に非同期イベント処理の完了を待つためには,その後でさらに引数なしのWaitForExitを呼ぶ必要がある.

if (WaitForExit(1000)) {
    WaitForExit();
} else {
    // timeout
}
c_.net_はまり道.txt · 最終更新: 2009/03/11 21:53 by hattori
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0