Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How display memory dump starting from a certain address?
IE i enter the address and display dump starting that address. Its possible?
Posted
Comments
Sergey Alexandrovich Kryukov 16-May-14 2:27am    
As soon this is the address in your process's memory space, there is not problem at all. With Windows, you get a flat address space, but it does not mean it is continuous in physical memory. So, what's the problem? What have you tried so far?
—SA
Viacheslav Kukhta 16-May-14 2:59am    
Oh sorry for my english :)
Need only virtual address space current process. How can i display dump? What functions can i use?
Sergey Alexandrovich Kryukov 16-May-14 10:31am    
Isn't the answer by C Pallini enough?
—SA
Code-o-mat 16-May-14 8:00am    
Do you mean you have a memory dump created with MiniDumpWriteDump as suggested to you in your other, earlier post where you asked how you could dump all process memory?
Viacheslav Kukhta 16-May-14 8:31am    
When reading the minidump is having problems and I need to dump out the ListBox

1 solution

As Sergey pointed out, dumping the memory directly accessible by the process is really simple, e.g.

C++
#include <cstdio>
using namespace std;

int main()
{
  int a[] = {1,2,3,4,5,6,7,8,9,10};

  unsigned char *p;

  p = (unsigned char *)&a[3];

  printf("%p", p);

  for (int n=0; n<8; ++n)
  {
    printf(" %02X", *p);
    ++p;
  }
  printf("\n");
}
 
Share this answer
 
Comments
Viacheslav Kukhta 16-May-14 9:07am    
and if I already have the address of the dump?
CPallini 16-May-14 9:09am    
Set the pointer with such address.
Sergey Alexandrovich Kryukov 16-May-14 10:29am    
5ed.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900