[python-win32] win32 pipes and CreateProcess
Drew Whitehouse
Drew.Whitehouse@anu.edu.au
26 Mar 2002 20:52:33 +1100
Hi,
I'm investigating some problems I'm having with win32 process creation
and in the course of investigating the matter I've noticed this
behavior ...
If you modify the example in win32/demos/pipes/runproc.py so that the test is
if __name__ == '__main__':
import time
while 1:
p = Process()
exe = win32api.GetModuleFileName(0)
p.run(exe + ' cat.py')
time.sleep(1)
It crashes with ....
$ python runproc.py
Read on stdout: 'hmmmmm\r\n'
Read on stderr: 'Blah...'
Read on stdout: 'hmmmmm\r\n'
Read on stderr: 'Blah...'
Traceback (most recent call last):
File "runproc.py", line 111, in ?
time.sleep(1)
pywintypes.api_error: (6, 'CloseHandle', 'The handle is invalid.')
Any ideas ?
-Drew
--
;; Drew.Whitehouse@anu.edu.au Sci-Viz/VR Programmer
;; http://anusf.anu.edu.au/~drw900 ANUSF VIZLAB
;; Australian National University Supercomputer Facility