I have a JNI method that creates a char array and then will return it do the java program that called it. how do i do this? Do I have to create a jcharArray? how do I do that? Basically what I want to do is: (pseudo code)
Well, I finally figured it out. Here's the code for anyone who's interested:
That's it! However: does anyone know if there's any cleanup I need to do? Is there anything else I need to do to make sure the jbyteArray is returned but can be garbage collected later and that there are no "leaks?" [ March 04, 2003: Message edited by: Robert Paris ]
subject: How return char array from native method to Java?