Forum Stats

  • 3,872,668 Users
  • 2,266,452 Discussions


Start Process and inherited handles on Windows

My application starts a launch-and-forget process using ProcessBuilder.start. That process keeps a handle to a file of mine that was opened (and I guess not closed) by a dll I called but didn't write. That's messing me up when I try to replace or re-write that file. (The sub-process has no interest in that file.)

The Windows CreateProcess function has a "inherit handles" boolean. Is there someway I can get Java to set that boolean to false?
This discussion has been closed.