Another interesting question is, why would you want to access memory like this?

Maybe another approach would be better and allow you to use Java.

Rolf