简体   繁体   中英

read memory of another process using address of variable

I want to read memory of process A but when the process A is disposed. I have run A, it displays address of some variable, I closed it.

I have run B where I input address of A's variable. It causes error "Access violation...".

I use Borland C++ builder and Windows 7.

Is there any way to watch ram when process is closed? Maybe some tools will help me. Could you give me names of tools to read memory by absolute address after memory deallocation?
Maybe it should be some sort of leak detectors?

关闭之后我不知道,但是在运行时,可以将ReadProcessMemory()CreateRemoteThread

On most systems, separate processes exist in completely separate virtual address spaces . The pointers you see in one process are completely meaningless in another.

Consequently, you have to explicitly share memory if you want to do this; I'm no Windows expert, but I believe that CreateSharedMemory() may be what you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM