I'm running a py script on a separate process via subprocess.Popen Then I call
(proc_out, proc_err) = proc.communicate
and also read the return code
proc.returncode
While proc_err is None the return code is 3221225738
Does anyone know what it means or how to get an understandable error? Thanks
STATUS_PROCESS_IS_TERMINATING(0xC000_010A) would normally be translated toERROR_ACCESS_DENIED(5) for a WinAPI call. Either the process failed during initialization, or it died on an unhandled exception while running. Offhand I can't think of a system call that would raise an exception with that status code, so I'll take a wild guess that something went wrong that caused the console host process (conhost.exe) to terminate while the base API was setting up the console connection. Try running it withcreationflags=subprocess.DETACHED_PROCESSandstdin=subprocess.DEVNULL.