View Single Post
Old Dec 10th, 2006, 3:52 AM   #2
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,010
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by FlytotheSky View Post
Good afternoon everybody, I'm a new member. Please help me!
How can I get an Integer value in memory? I want to access memory. Thank so much and have a good day
I don't think you can do this in VB .NET. In C#, you can do it by using the unsafe keyword, and pointers, but there's probably a better (read: safer, more reliable) way. Why exactly do you need to do this? If you're wanting to peek into another process's memory, that's generally a no-no, and the OS will have implemented measures to restrict that. If you're wanting to peek at your own process's memory, what's wrong with just using the variables you've declared? Lastly, if you are trying to access memory-mapped hardware (video memory, for example), you will most probably run afoul of hardware contention issues. Try to see if there is some kind of API or system call to do what you need. In the case of video memory access, you could use something like managed DirectX (there are a lot of tutorials out there for it).

If you're trying to do something different, and really need direct access to absolute memory locations, you'll probably want to (re)write your code (or at least the relevant modules) in another language, like C, C++, or assembly.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote