problem with startProcess
Hi,
Im trying to start a process and debug all child processes and terminate it after a while. Im using pykd version 0.3.4.1 on Windows 7 and latest Windows SDK, I got PYKD_BOOTSTRAPPER_2.0.0.16.zip and did !pip install pykd to install it for python.
This is code im using:
import pykd
import multiprocessing
import time
def run_program():
program = "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe"
#proc = pykd.startProcess(program, pykd.ProcessDebugOptions.BreakOnStart | pykd.ProcessDebugOptions.DebugChildren)
proc = pykd.startProcess(program, debugChildren=True)
pykd.go()
if __name__ == "__main__":
#pykd.initialize()
multiprocessing.freeze_support()
p = multiprocessing.Process(target=run_program, args=())
p.start()
p.join()
time.sleep(5)
pykd.killAllProcess()
and Im getting the following errors:
Process Process-1:
Traceback (most recent call last):
File "C:\Python27\lib\multiprocessing\process.py", line 267, in _bootstrap
self.run()
File "C:\Python27\lib\multiprocessing\process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\win7entx64\Desktop\1.py", line 8, in run_program
proc = pykd.startProcess(program, pykd.ProcessDebugOptions.DebugChildren)
DbgException: Call IDebugControl::WaitForEvent failed
HRESULT 0x8000ffff
Traceback (most recent call last):
File "1.py", line 20, in <module>
pykd.killAllProcess()
AttributeError: 'module' object has no attribute 'killAllProcess'
I read the wiki and checked few sample source codes available online but idk what im doing wrong.
thanks in advance