[android-developers] Re: Issue with getByteArrayRegion returning LARGE byte arrays. (JNI Code)

2010-07-16 Thread DanH
First off, are you sure that imageData_in is length long? My JNI is a little rusty, but I recall that some of the JNI array ops memory map the arrays (on some platforms), tying up considerable additional pieces of address space. But I can't offhand think how that might factor in here. On Jul

[android-developers] Re: Issue with getByteArrayRegion returning LARGE byte arrays. (JNI Code)

2010-07-16 Thread fadden
On Jul 15, 11:56 am, philip hays blackspyder31...@gmail.com wrote:         jbyte* imageData_out = (*env)-NewByteArray(env, length); NewByteArray returns a jbyteArray, not a pointer to jbyte.         (*env)-GetByteArrayRegion(env, imageData_in, 0, length, (jbyte*)imageData_out); This copied