Click here to Skip to main content
15,353,841 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
How do i create memory Capture / (snapshot) in C++? to analyze it.

if the source code already exits ?

Platform: windows 10 x86

What I have tried:

Googling it for few days but no hopes.
Posted
Updated 16-May-22 10:52am
v2
Comments
   
Snapshot of what memory? This question is not as simple as it may seem. This is protected mode. There are so many levels of memory in x86 and OS, and it can be a current process memory, remote process memory of whole system. What is "snapshot" also needs definition, which is not trivial at all.
—SA

1 solution

The keyword is Mini Dump, that's the Windows jargon for a memory and stack dump.

This acticle: Post-Mortem Debugging Your Application with Minidumps and Visual Studio .NET[^] might help you, although it is targeted for .NET. You might want to google a little more to find something similar for non-managed C++, or just adapt the code.
   

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