开发者

IDebugControl WaitForEvent: Only part of a ReadProcessMemory or WriteProcessMemory request was completed

开发者 https://www.devze.com 2023-03-28 01:16 出处:网络
I created a process using: hr = pClient->CreateProcess(0,(char*)(sCommandLine.c_str()),DEBUG_PROCESS); // CComPtr pClient

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

0

精彩评论

暂无评论...
验证码 换一张
取 消