"Tim Attwood" <tim### [at] comcast net> wrote:
> You should be able to set up POV to /EXIT
>
> However, in DOS you can kill POV with
> taskkill /f /im pvengine.exe /t
> I think in Java you need to spawn a runtime
> thread to make a system call, then monitor
> it for completion, and kill the thread when it's
> done.
Right in Java i do something like:
Runtime r = Runtime.getRuntime() // gets the current runtime
Process p = r.exec("pvengine -isample.pov -osample.png"); // Execute pov ray
and return the associated process
p.waitFor(); // Waits the current thread until povray finished
But Povray renders the image and is still open. So the thread is still
stopped at p.waitFor() When i close the window manually the program
continues.
I think the best is to set up the "Exit when done" option but still didnt
had time to try it.
Post a reply to this message
|