views:

118

answers:

3

So I'd like to let read D read this memory location and do some work on it. Any thoughts? Is writing a debugger extension the only way - if so, any recommendations?

I considered executing a memory dump to file (still don't know how, AFAIK I can only view memory in a window) and letting D work on the file, but is there a better way?

+6  A: 

It is possible to read memory of another process. You should use ReadProcessMemory function.

Andrey Shvydky
Wow, really? I thought you couldn't read outside the programs allocated region! Will check it out.
Jacob
+2  A: 

Since you're apparently using Windows, the way for one process to look at another process' memory is with ReadProcessMemory. While it's certainly true that debuggers typically use this, using it is still well short of writing a debugger.

Jerry Coffin
+6  A: 

if you need the two programs to share part of the memory you can use shared memory

Alon