IdiotZ42
How can I get the memory address of a feilds in C#?
Also note that the printed address in your example is tenuous, because after you free the handle the object gets unpinned, and the GC is once again free to move it around in memory however it wishes. (probably won't though, it's designed to be as lazy as possible)
37 replies