PDA

View Full Version : Setcpu and Setdisasm - problem


hnedka
August 21st, 2009, 04:39
I have a problem with functions Setcpu and Setdisasm. Under normal conditions, they work correctly. But when I use VirtualAllocEx to allocate memory in the process's address space, then I use Writememory to write code to that area and then I use one of the above functions, they display just an empty window(s). Going to that allocated area using ctrl-G work as it should. But going to that area using one of those functions doesn't work until I visit it manually using ctrl-G.

Is there any workaround or am I doing something wrong?
Thanks.

hnedka
August 21st, 2009, 04:53
Never mind, went again through all the functions and found solution - Listmemory(). This function actualizes list of memory blocks and then it works as it should. Hope this helps someone in the future.