• Post Reply Bookmark Topic Watch Topic
  • New Topic

On NewStringUTFChars that is returned to Java, no ReleaseStringChars?  RSS feed

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just want to double check. If I create a jstring in c++ and then put it in a jobjectArray and return that array to Java, I assume I do NOT call ReleaseStringChars or DeleteLocalRef, right?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right.
 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ernest Friedman-Hill:
Right.


Thanks. Question though: just to test it I tried calling each of those and if I call ReleaseStringChars, it still works properly 9but DeleteLocalRef messes everything up). Why is this?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!