Click here to Skip to main content
15,914,225 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a problem when I try to dump a byte array variable to disk.

The array is big, so if I use the immediate window to print the content I obtain only 100 items.

I can obtain the address of it (looking the disassembly window and registers) and so I can get data in memory window, but how to save from there?

I think, if I could create and run some c# code when I am in debugging session cycling to the elements of the array and saving them to disk, this could be a good solution, but I don't know how to do this.

Thank you
Piero
Posted
Updated 12-Nov-11 19:37pm
v2

1 solution

In the watch window enter the following (assuming your variable name is bytearrayvariable) :
System.IO.File.WriteAllBytes("filename", bytearrayvariable)
 
Share this answer
 

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