Skip to Main Content

Java HotSpot Virtual Machine

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!

NewStringUTF and releasing

843829Jun 27 2002 — edited Jun 30 2002
Hello,

In the documentation that i found, you use the ReleaseStringUTFChars when you use GetStringUTFChars. My question is, do i need to do something similar with NewStringUTF? If i use ReleaseStringUTFChars correctly on something i created w/ NewStringUTF, my program crashes.

I really need to avoid memory leaks here and just want to make sure that allocated memory is freed as soon as possible.

Thanks :)
txjump
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2002
Added on Jun 27 2002
6 comments
628 views