title: CreateProcess blocking - strange behaviour
body: <p>I have written an application which simply executes <code>java -jar</code>. I want the starter application to exit immediately after executing <code>CreateProcessA</code>.</p>
  
  <pre><code>LPSTR _cmdupdate = const_cast&lt;char *&gt; (cmdupdate.c_str());
  STARTUPINFO info = {sizeof (info)};
  ZeroMemory(&amp;info,sizeof(info));
  info.cb=sizeof(info);
  PROCESS_INFORMATION processInfo;
  ZeroMemory(&amp;processInfo,sizeof(processInfo));
  CreateProcessA(TEXT(java_exe.c_str()), _cmdupdate, NULL, NULL, false, 0, NULL, TEXT("bin"), &amp;info, &amp;processInfo);
  CloseHandle(processInfo.hProcess);
  CloseHandle(processInfo.hThread);
  exit(0);
  </code></pre>
  
  <p>If I'am executing this via IDE (Netbeans 7) everything works fine: java continues running while the starter terminates.
  If I'am running the same exe by double clicking on it: java starts up the jar, but the starter waits for the java process to exit.</p>
  
  <p>So what's the difference to CreateProcess when running via IDE vs. running standalone? </p>