By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,175 Members | 1,710 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,175 IT Pros & Developers. It's quick & easy.

Reading the value stored at a memory location

P: n/a
Hello,

I am relatively new to C#.

There is a particular address in memory on my computer that stores a
string value. The address is 57E777.

Does anyone know how I can retrieve the string value stored at this
address and store it in a string variable?

I have tried using pointers to do this but with no success.

Thanks for any help,
Aqua
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Boltar,

I don't see how this is possible. Is the address in the virtual address
space of the current process? If that is the case, and it is null
terminated, then you can call the static PtrToString methods on the Marshal
class, passing an IntPtr with the value of 57E777 (although I don't see how
that is possible either, as it is not 4 byte aligned).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Boltar" <aq********@hotmail.com> wrote in message
news:bc**************************@posting.google.c om...
Hello,

I am relatively new to C#.

There is a particular address in memory on my computer that stores a
string value. The address is 57E777.

Does anyone know how I can retrieve the string value stored at this
address and store it in a string variable?

I have tried using pointers to do this but with no success.

Thanks for any help,
Aqua

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.