a***a 发帖数: 161 | 1 sorry for not input chinese, but this is REALLY an INTERESTING problem!
in my code I want to use Runtime().exec() to start
QuickTimePlayer and wait until quicktimeplayer is terminated
by the user, as shown below. The thing is, p.waitFor()
should return AFTER the quicktimeplayer quits; however, I
found that if there is already some instances of qtplayer
running, p.waitFor() will return immediately, and
p.exitValue() gets 0-success. I wonder if there is some
tricks that can deal with this situatio |
|