• Post Reply Bookmark Topic Watch Topic
  • New Topic

Do I need to call ReleaseIntArrayElements when using NewIntArray?  RSS feed

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry if this question sounds ridiculous but the documentation for JNI is pretty weak so i couldn't find a good answer.

I know when I have a "jintArray" that I get elements from (via GetIntArrayElements), that I then need to release them later. Doing so, I call the function on the original jintArray as well as the element array. However, when creating a new jint array, I have no "jintArray" to pass to the release function. Does this mean I don't release them? Why?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!