when to use ReleaseStringChars????
843829May 20 2003 — edited May 23 2003Hi, i have a C function in my code that calls NewStringUTF, then passes the resulting jstrings into a JNI function. Hence, I never use the GetStringChars function. I am wondering, do I need to call ReleaseStringChars if I have never called GetStringChars? the JNI tutorial on this site seems to imply that, unless you call GetStringChars, you do not have to call ReleaseStringChars. I need to know because this is for a database inquiry system that would be calling this C function a whole bunch and would easily eat up memory quick if there is even a small memory leak! please help .thanks....