E
Edsoncv
Hello
I'm trying (without sucess
) to get a double array form Java using
JNI.
My function (in C++) calls "CallDoubleMethod" but put trash in my "C"
double array. I'm doing somethig wrong but I don't know what. I check
the values from Java and it is being calculated perfectly, I think the
problem is in the array association (since I'm not a experienced
programmer). Below is my code.
jdouble *jacj = new jdouble[n];
.....
get class
get method id
get object and so on...
*jacj = env->CallDoubleMethod(res_gradObj, getdataMetID);
I'm almost sure that the problem is in the last line. Can someone
please help me?
Thanks
I'm trying (without sucess
JNI.
My function (in C++) calls "CallDoubleMethod" but put trash in my "C"
double array. I'm doing somethig wrong but I don't know what. I check
the values from Java and it is being calculated perfectly, I think the
problem is in the array association (since I'm not a experienced
programmer). Below is my code.
jdouble *jacj = new jdouble[n];
.....
get class
get method id
get object and so on...
*jacj = env->CallDoubleMethod(res_gradObj, getdataMetID);
I'm almost sure that the problem is in the last line. Can someone
please help me?
Thanks