我在 releasedoublearrayelements 中遇到了问题,它在这个函数中崩溃了,所以请你帮我解决这个问题,这是我的代码:
jdouble *dxyz = new jdouble[3];
dxyz[0] = 0.0;
dxyz[1] = 0.0;
dxyz[2] = 0.0;
jdoubleArray darr = env->NewDoubleArray(3);
env->SetDoubleArrayRegion(darr,0,3,dxyz);
jclass dclass = env->GetObjectClass( darr );
jobjectArray iarr = env->NewObjectArray(nbControlNodes,dclass,darr);
env->ReleaseDoubleArrayElements(darr,dxyz,JNI_ABORT);//its crashing here