SetByteArrayRegion Behavior
843829Sep 15 2006 — edited Sep 18 2006I was wondering if someone could help me understand this better...
I have a large amount of memory generated in a C++ application that I want to make available to my JVM. I'm currently using SetByteArrayRegion() to get the data into my Java object, however I believe that this is making a copy of the data, rather than referencing the shared memory from the C++ application.
Is there a way to simply pass a shared pointer in to the JVM and use it as a byte[]? When I've tried that, I end up with access violations from the JVM.
Thanks.