Forums Register Login

On NewStringUTFChars that is returned to Java, no ReleaseStringChars?

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
Right.
+Pie Number of slices to send: Send
 

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?
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1089 times.
Similar Threads
When call DeleteLocalRef?
hi, i have problem in reading data
i love java
How convert from jstring to wchar_t?
Crypted Strings in a file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:37:37.