JNI memory handler
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alexander_F
Posted On:   Friday, March 22, 2002 01:36 AM

Who is responsible for freeing memory that was allocated in native call and pointer was passed to JAVA?


JVM or i should i call another JNI method to free allocated memory ?



Get function:


			
jobjectArray result = (*env)->NewObjectArray(env, size, intArrCls, NULL);

--fill array---

return result;


Free function:


			
delete somehow jobjectArray result ?

About | Sitemap | Contact