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

0

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->SetExecutionStatus(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

c++
windows
visual-studio-2010
debugging
com
asked on Stack Overflow Aug 15, 2011 by Logan • edited Jun 20, 2012 by Logan

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0