I created a process using:
hr = pClient->CreateProcess(0,(char*)(sCommandLine.c_str()),DEBUG_PROCESS); // CComPtr pClient
After setting breakpoints (no errors here), when I call:
hr = pControl->SetExecutionSt开发者_开发问答atus(DEBUG_STATUS_GO); // CComPtr pControl
hr = pControl->WaitForEvent(DEBUG_WAIT_DEFAULT,INFINITE);
I get the following error:
hr 0x8007012b Only part of a ReadProcessMemory or WriteProcessMemory request was completed. HRESULT
Both the target and current applications are 32-bit and developed in Windows 7 using Visual studio 2010. Is there a way to resolve this error?
Thanks,
Logan
精彩评论