This discussion is archived
0 Replies Latest reply: Mar 25, 2011 11:48 AM by 802418 RSS

Start Process and inherited handles on Windows

802418 Newbie
Currently Being Moderated
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?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points