Dumping contents of memory to a file

I can easily identify a process and it's associated threads, memory usage, private bytes, etc. What I'd like to do is dump that process to a file ( the whole thing, as it is in memory ). Or at a minimum be able to view what's in that process. I'm using C#, and the Process class in System.Diagnostics. Anyone have suggestions on how to get access to what exactly is in the memory of the process I want to access?
[417 byte] By [MattKosorok] at [2007-12-16]
# 1
Hello Matt,

What you are looking for is the 'Save As [Memory] Dump' feature. You can find some more information on GreggM's Debugging Blog on MSDN.

Also, the current owner of that CLR memory dump feature is Jonathan Keljo. You can find his newly minted blog at: http://blogs.msdn.com/jkeljo/. Feel free to contact Jonathan via his blog and ask him for a detailed post - I know he'd love to talk about it some more!

Hope that helps,
Stephen
http://blogs.msdn.com/stfisher

StephenFisher-MS at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified