This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
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 ]