Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

question about the return pointer of GetCharArrayElements

user3456293May 24 2015 — edited Jun 18 2015

I am using Java Native Interfaces(JNI). I need to read the content of a char array, so I am going to use GetCharArrayElements. It returns a pointer to a array of native char. Shall I need to release the memory pointed by the pointer at last? To avoid memory leaks, I am asking this question here. Thanks for any hints in advance.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 16 2015
Added on May 24 2015
1 comment
844 views